From: Jouni Malinen Date: Fri, 3 Nov 2023 20:28:22 +0000 (+0200) Subject: tests: ap_hs20_remediation_required_ctrl with UML time travel X-Git-Tag: hostap_2_11~867 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fbd391138f984fe892c56ca611447ccc2d1750a;p=thirdparty%2Fhostap.git 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 --- 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: