]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Ignore old scan results in couple more WPS test cases
authorJouni Malinen <j@w1.fi>
Sun, 31 Mar 2013 17:01:57 +0000 (20:01 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 31 Mar 2013 17:01:57 +0000 (20:01 +0300)
These have shown failures due to obsolete scan results from previous
test cases being present.

Signed-hostap: Jouni Malinen <j@w1.fi>

tests/hwsim/test_ap_wps.py

index 1b44de0ef57392e8a8f183963051712e000f0b42..84fb8abbf79b777782f18c5714b2d28ddb631d2d 100644 (file)
@@ -22,6 +22,8 @@ def test_ap_wps_init(dev, apdev):
     hapd = hostapd.Hostapd(apdev[0]['ifname'])
     logger.info("WPS provisioning step")
     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].request("WPS_PBC")
     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")
     pin = dev[0].wps_read_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].request("WPS_PIN any " + pin)
     ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"], timeout=15)