]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Flush scan table in ap_wps_priority to make it more robust
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 16 May 2022 16:09:23 +0000 (19:09 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 16 May 2022 16:09:23 +0000 (19:09 +0300)
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 <quic_jouni@quicinc.com>
tests/hwsim/test_ap_wps.py

index 4a15604b6405a502b536f0088ab5d1496cb42e35..e01c73a1098dde28df601a3c5a28ae7cc96eca62 100644 (file)
@@ -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: