tests: Ignore old scan results in couple more WPS test cases
These have shown failures due to obsolete scan results from previous test cases being present. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
1a8e4761da
commit
6dacb8e98b
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,8 @@ def test_ap_wps_init(dev, apdev):
|
||||||
hapd = hostapd.Hostapd(apdev[0]['ifname'])
|
hapd = hostapd.Hostapd(apdev[0]['ifname'])
|
||||||
logger.info("WPS provisioning step")
|
logger.info("WPS provisioning step")
|
||||||
hapd.request("WPS_PBC")
|
hapd.request("WPS_PBC")
|
||||||
|
dev[0].request("BSS_FLUSH 0")
|
||||||
|
dev[0].request("SET ignore_old_scan_res 1")
|
||||||
dev[0].dump_monitor()
|
dev[0].dump_monitor()
|
||||||
dev[0].request("WPS_PBC")
|
dev[0].request("WPS_PBC")
|
||||||
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=15)
|
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=15)
|
||||||
|
@ -75,6 +77,8 @@ def test_ap_wps_conf_pin(dev, apdev):
|
||||||
logger.info("WPS provisioning step")
|
logger.info("WPS provisioning step")
|
||||||
pin = dev[0].wps_read_pin()
|
pin = dev[0].wps_read_pin()
|
||||||
hapd.request("WPS_PIN any " + pin)
|
hapd.request("WPS_PIN any " + pin)
|
||||||
|
dev[0].request("BSS_FLUSH 0")
|
||||||
|
dev[0].request("SET ignore_old_scan_res 1")
|
||||||
dev[0].dump_monitor()
|
dev[0].dump_monitor()
|
||||||
dev[0].request("WPS_PIN any " + pin)
|
dev[0].request("WPS_PIN any " + pin)
|
||||||
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=15)
|
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=15)
|
||||||
|
|
Loading…
Reference in a new issue