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 <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2022-05-16 19:09:23 +03:00 committed by Jouni Malinen
parent b9313e17e8
commit 7173992b96

View 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: