]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: WPS PBC overlap indication from hostapd
authorJouni Malinen <j@w1.fi>
Sun, 28 Feb 2021 18:34:42 +0000 (20:34 +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 7df8f985f0f949a5d3a1e98ed3e038f9b48857c0..05db941c5ada26fc1597cc183cc4e7875c09dd65 100644 (file)
@@ -1054,6 +1054,11 @@ def test_ap_wps_pbc_overlap_2sta(dev, apdev):
         raise Exception("PBC session overlap not correctly reported (dev1)")
     dev[1].request("WPS_CANCEL")
     dev[1].request("DISCONNECT")
+    ev = hapd.wait_event(["WPS-OVERLAP-DETECTED"], timeout=1)
+    if ev is None:
+        raise Exception("PBC session overlap not detected (AP)")
+    if "PBC Status: Overlap" not in hapd.request("WPS_GET_STATUS"):
+        raise Exception("PBC status not shown correctly")
     hapd.request("WPS_CANCEL")
     ret = hapd.request("WPS_PBC")
     if "FAIL" not in ret: