]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make ap_wps_iteration_error work with S1G channels
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 16 Jan 2023 10:02:30 +0000 (12:02 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 16 Jan 2023 10:40:41 +0000 (12:40 +0200)
If mac80211_hwsim has S1G channels enabled, the 15 second timeout was
not long enough to allow two scan iterations to be completed.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_ap_wps.py

index 3c835722d84b6ac67f22c86ebb8eaaccc611cb05..60dee71d849239da82148ce57d6b5868287dc916 100644 (file)
@@ -3919,9 +3919,11 @@ def test_ap_wps_iteration_error(dev, apdev):
     hapd.request("SET ext_eapol_frame_io 1")
     bssid = apdev[0]['bssid']
     pin = dev[0].wps_read_pin()
+    dev[0].scan_for_bss(bssid, freq="2412")
+    dev[0].dump_monitor()
     dev[0].request("WPS_PIN any " + pin)
 
-    ev = hapd.wait_event(["EAPOL-TX"], timeout=15)
+    ev = hapd.wait_event(["EAPOL-TX"], timeout=30)
     if ev is None:
         raise Exception("No EAPOL-TX (EAP-Request/Identity) from hostapd")
     dev[0].request("EAPOL_RX " + bssid + " " + ev.split(' ')[2])