From: Jouni Malinen Date: Sat, 13 Dec 2014 17:51:03 +0000 (+0200) Subject: tests: WPS ER restart and stop X-Git-Tag: hostap_2_4~800 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f8c2fe8b2815230f5d56f2b7a989387b9b743b1;p=thirdparty%2Fhostap.git tests: WPS ER restart and stop Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index 93905a6a8..80606cde0 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -1116,6 +1116,18 @@ def test_ap_wps_er_config_ap(dev, apdev): dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"]) dev[0].connect(ssid, psk="1234567890", scan_freq="2412") + logger.info("WPS ER restart") + dev[0].request("WPS_ER_START") + ev = dev[0].wait_event(["WPS-ER-AP-ADD"], timeout=15) + if ev is None: + raise Exception("AP discovery timed out on ER restart") + if ap_uuid not in ev: + raise Exception("Expected AP UUID not found on ER restart") + if "OK" not in dev[0].request("WPS_ER_STOP"): + raise Exception("WPS_ER_STOP failed") + if "OK" not in dev[0].request("WPS_ER_STOP"): + raise Exception("WPS_ER_STOP failed") + def test_ap_wps_fragmentation(dev, apdev): """WPS with fragmentation in EAP-WSC and mixed mode WPA+WPA2""" ssid = "test-wps-fragmentation"