From 73a3ef8c5d87081dcdc6eef4882aab0266e09b64 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 28 Feb 2021 20:37:09 +0200 Subject: [PATCH] tests: WPS status "Timed-out" from hostapd Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_wps.py | 4 ++++ 1 file changed, 4 insertions(+) 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)