From 7173992b96d581517b710d4b6c5e341aa5307162 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 16 May 2022 19:09:23 +0300 Subject: [PATCH] tests: Flush scan table in ap_wps_priority to make it more robust This test case could fail if there was an old BSS entry from a previous test case in the scan results. 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 4a15604b6..e01c73a10 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -3961,6 +3961,7 @@ def test_ap_wps_priority(dev, apdev): 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].dump_monitor() try: