]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: WPS status "Timed-out" from hostapd
authorJouni Malinen <j@w1.fi>
Sun, 28 Feb 2021 18:37:09 +0000 (20:37 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 28 Feb 2021 20:31:58 +0000 (22:31 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_wps.py

index 05db941c5ada26fc1597cc183cc4e7875c09dd65..08be5f41f230c082d7556f6441d98cf2c7a56dfa 100644 (file)
@@ -10453,6 +10453,10 @@ def run_ap_wps_ap_timeout(dev, apdev, cmd):
     ev = hapd.wait_event(["WPS-TIMEOUT"], timeout=130)
     if ev is None and "PBC" in cmd:
         raise Exception("WPS-TIMEOUT not reported")
+    if "PBC" in cmd and \
+       "PBC Status: Timed-out" not in hapd.request("WPS_GET_STATUS"):
+        raise Exception("PBC status not shown correctly")
+
     time.sleep(5)
     dev[0].flush_scan_cache()
     dev[0].scan_for_bss(bssid, freq="2412", force_scan=True)