From: Jouni Malinen Date: Mon, 16 May 2022 16:09:23 +0000 (+0300) Subject: tests: Flush scan table in ap_wps_priority to make it more robust X-Git-Tag: hostap_2_11~1905 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7173992b96d581517b710d4b6c5e341aa5307162;p=thirdparty%2Fhostap.git 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 --- 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: