From cc7f85ca72e65db8a5c3352370b333de748c997f Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 1 Jan 2020 16:41:33 +0200 Subject: [PATCH] tests: Make ap_wps_conf_pin_* more robust Explicitly clear cfg80211 scan cache to avoid issues with old BSS entries from previous test cases. Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_wps.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index 509bae1cf..7e5499d4a 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -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)