From: Jouni Malinen Date: Sun, 2 Feb 2014 22:07:42 +0000 (+0200) Subject: tests: Verify WPS AP does not activate PBC during overlap X-Git-Tag: hostap_2_1~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=11e7eeba8ed33bfedf0e2989ac06ab2b4af27701;p=thirdparty%2Fhostap.git tests: Verify WPS AP does not activate PBC during overlap Signed-hostap: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index 198390f1a..3a901f793 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -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"""