]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Verify WPS AP does not activate PBC during overlap
authorJouni Malinen <j@w1.fi>
Sun, 2 Feb 2014 22:07:42 +0000 (00:07 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 4 Feb 2014 11:10:57 +0000 (13:10 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

tests/hwsim/test_ap_wps.py

index 198390f1a895bd2ed06c7729edf65ea7be39a16e..3a901f7937f5f00a51c838e80f1040c4aa8da2f1 100644 (file)
@@ -543,6 +543,10 @@ def test_ap_wps_pbc_overlap_2sta(dev, apdev):
         raise Exception("PBC session overlap not detected (dev1)")
     if "config_error=12" not in ev:
         raise Exception("PBC session overlap not correctly reported (dev1)")
+    hapd.request("WPS_CANCEL")
+    ret = hapd.request("WPS_PBC")
+    if "FAIL" not in ret:
+        raise Exception("PBC mode allowed to be started while PBC overlap still active")
 
 def test_ap_wps_cancel(dev, apdev):
     """WPS AP cancelling enabled config method"""