tests: Verify selected registrar clearing on PIN method completion

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2013-12-28 19:30:24 +02:00
parent 71afe83441
commit 362ba6de98

View file

@ -170,6 +170,12 @@ def test_ap_wps_conf_pin(dev, apdev):
if status['key_mgmt'] != 'WPA2-PSK': if status['key_mgmt'] != 'WPA2-PSK':
raise Exception("Unexpected key_mgmt") 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): def test_ap_wps_reg_connect(dev, apdev):
"""WPS registrar using AP PIN to connect""" """WPS registrar using AP PIN to connect"""
ssid = "test-wps-reg-ap-pin" ssid = "test-wps-reg-ap-pin"