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:
parent
f9965a6505
commit
7fbd391138
1 changed files with 1 additions and 0 deletions
|
@ -2761,6 +2761,7 @@ def _test_ap_hs20_remediation_required_ctrl(dev, apdev):
|
||||||
interworking_select(dev[0], bssid, freq="2412")
|
interworking_select(dev[0], bssid, freq="2412")
|
||||||
interworking_connect(dev[0], bssid, "TTLS")
|
interworking_connect(dev[0], bssid, "TTLS")
|
||||||
|
|
||||||
|
hapd.wait_sta()
|
||||||
hapd.request("HS20_WNM_NOTIF " + addr + " https://example.com/")
|
hapd.request("HS20_WNM_NOTIF " + addr + " https://example.com/")
|
||||||
ev = dev[0].wait_event(["HS20-SUBSCRIPTION-REMEDIATION"], timeout=5)
|
ev = dev[0].wait_event(["HS20-SUBSCRIPTION-REMEDIATION"], timeout=5)
|
||||||
if ev is None:
|
if ev is None:
|
||||||
|
|
Loading…
Reference in a new issue