From: Jouni Malinen Date: Sat, 28 Dec 2013 17:30:24 +0000 (+0200) Subject: tests: Verify selected registrar clearing on PIN method completion X-Git-Tag: hostap_2_1~311 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=362ba6de989a0c41858b2caf042c143533fe7d20;p=thirdparty%2Fhostap.git tests: Verify selected registrar clearing on PIN method completion Signed-hostap: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index 704da825d..fe34eca03 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -170,6 +170,12 @@ def test_ap_wps_conf_pin(dev, apdev): if status['key_mgmt'] != 'WPA2-PSK': raise Exception("Unexpected key_mgmt") + dev[1].request("SET ignore_old_scan_res 1") + dev[1].scan(freq="2412") + bss = dev[1].get_bss(apdev[0]['bssid']) + if "[WPS-AUTH]" in bss['flags']: + raise Exception("WPS-AUTH flag not cleared") + def test_ap_wps_reg_connect(dev, apdev): """WPS registrar using AP PIN to connect""" ssid = "test-wps-reg-ap-pin"