tests: ap_hs20_remediation_required_ctrl with UML time travel

Wait for hostapd connection event before issue HS20_WNM_NOTIF to avoid a
race condition with UML time travel.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2023-11-03 22:28:22 +02:00 committed by Jouni Malinen
parent f9965a6505
commit 7fbd391138

View file

@ -2761,6 +2761,7 @@ def _test_ap_hs20_remediation_required_ctrl(dev, apdev):
interworking_select(dev[0], bssid, freq="2412")
interworking_connect(dev[0], bssid, "TTLS")
hapd.wait_sta()
hapd.request("HS20_WNM_NOTIF " + addr + " https://example.com/")
ev = dev[0].wait_event(["HS20-SUBSCRIPTION-REMEDIATION"], timeout=5)
if ev is None: