From 7fbd391138f984fe892c56ca611447ccc2d1750a Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 3 Nov 2023 22:28:22 +0200 Subject: [PATCH] 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 --- tests/hwsim/test_ap_hs20.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/hwsim/test_ap_hs20.py b/tests/hwsim/test_ap_hs20.py index d091011de..30bacb969 100644 --- a/tests/hwsim/test_ap_hs20.py +++ b/tests/hwsim/test_ap_hs20.py @@ -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: