]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make WPS protocol tests for credential processing more robust
authorJouni Malinen <j@w1.fi>
Fri, 27 Dec 2024 17:50:07 +0000 (19:50 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 27 Dec 2024 17:50:07 +0000 (19:50 +0200)
Clear the scan cache at the beginning of these test cases to avoid
issues with WPS_PBC and WPS_PIN commands if there were to be an old scan
result from a previous test case with the same BSSID.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_wps.py

index 883a735e42d2174d9ec875344ef213ba964d4ef3..c3d0fa4c4251c694f09e05760802b2643999dbc8 100644 (file)
@@ -5586,6 +5586,8 @@ def wps_ext_eap_wsc(dst, src, src_addr, msg):
         raise Exception("EAPOL_RX failed")
 
 def wps_start_ext(apdev, dev, pbc=False, pin=None):
+    dev.flush_scan_cache()
+
     addr = dev.own_addr()
     bssid = apdev['bssid']
     ssid = "test-wps-conf"