tests: Avoid race condition in ap_pmf_assoc_comeback_wps
This needs similar waits on hostapd as ap_pmf_assoc_comeback. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
86dd038889
commit
2e0751b2b4
1 changed files with 5 additions and 0 deletions
|
@ -329,11 +329,16 @@ def test_ap_pmf_assoc_comeback_wps(dev, apdev):
|
|||
dev[0].connect(ssid, psk="12345678", ieee80211w="1",
|
||||
key_mgmt="WPA-PSK WPA-PSK-SHA256", proto="WPA2",
|
||||
scan_freq="2412")
|
||||
hapd.wait_sta(wait_4way_hs=True)
|
||||
hapd.set("ext_mgmt_frame_handling", "1")
|
||||
dev[0].request("DISCONNECT")
|
||||
dev[0].wait_disconnected(timeout=10)
|
||||
ev = hapd.wait_event(["MGMT-RX"], timeout=1)
|
||||
if ev is None:
|
||||
raise Exception("Deauthentication frame RX not reported")
|
||||
hapd.set("ext_mgmt_frame_handling", "0")
|
||||
dev[0].wps_reg(apdev[0]['bssid'], appin)
|
||||
hapd.wait_4way_hs()
|
||||
if wt.get_sta_counter("assocresp_comeback", apdev[0]['bssid'],
|
||||
dev[0].p2p_interface_addr()) < 1:
|
||||
raise Exception("AP did not use association comeback request")
|
||||
|
|
Loading…
Reference in a new issue