From: Jouni Malinen Date: Sat, 15 Mar 2014 15:27:05 +0000 (+0200) Subject: tests: WPS AP PIN unlocking X-Git-Tag: hostap_2_2~536 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1cec68b932791d723a0e53259c5ca964bf435c6;p=thirdparty%2Fhostap.git tests: WPS AP PIN unlocking Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index fc69ba646..0669376a7 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -552,6 +552,13 @@ def test_ap_wps_setup_locked(dev, apdev): if ev is None: raise Exception("Association with the AP timed out") + appin = hapd.request("WPS_AP_PIN random") + if "FAIL" in appin: + raise Exception("Could not generate random AP PIN") + ev = hapd.wait_event(["WPS-AP-SETUP-UNLOCKED"], timeout=10) + if ev is None: + raise Exception("Failed to unlock AP PIN") + def test_ap_wps_pbc_overlap_2ap(dev, apdev): """WPS PBC session overlap with two active APs""" hostapd.add_ap(apdev[0]['ifname'],