From: Jouni Malinen Date: Sun, 28 Feb 2021 18:37:09 +0000 (+0200) Subject: tests: WPS status "Timed-out" from hostapd X-Git-Tag: hostap_2_10~499 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73a3ef8c5d87081dcdc6eef4882aab0266e09b64;p=thirdparty%2Fhostap.git tests: WPS status "Timed-out" from hostapd Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index 05db941c5..08be5f41f 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -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)