]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Verify selected registrar clearing on PIN method completion
authorJouni Malinen <j@w1.fi>
Sat, 28 Dec 2013 17:30:24 +0000 (19:30 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 29 Dec 2013 08:00:32 +0000 (10:00 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

tests/hwsim/test_ap_wps.py

index 704da825ddf9301710abe516e0de9b34abc1e499..fe34eca0380ffbe9cb5ae48527ff1f2ad44bacf6 100644 (file)
@@ -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"