]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make ap_wps_conf_pin_* more robust
authorJouni Malinen <j@w1.fi>
Wed, 1 Jan 2020 14:41:33 +0000 (16:41 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 1 Jan 2020 14:41:33 +0000 (16:41 +0200)
Explicitly clear cfg80211 scan cache to avoid issues with old BSS
entries from previous test cases.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_wps.py

index 509bae1cff0cd5df83e0a05cbd3a03ecb5e6b237..7e5499d4a7e68c29dfff02c9aca8ac284ee02158 100644 (file)
@@ -10152,6 +10152,7 @@ def run_ap_wps_conf_pin_cipher(dev, apdev, cipher):
     logger.info("WPS provisioning step")
     pin = dev[0].wps_read_pin()
     hapd.request("WPS_PIN any " + pin)
+    dev[0].flush_scan_cache()
     dev[0].scan_for_bss(apdev[0]['bssid'], freq="2412")
     dev[0].request("WPS_PIN %s %s" % (apdev[0]['bssid'], pin))
     dev[0].wait_connected(timeout=15)