Browse Source

tests: Make pmksa_cache_opportunistic_connect more robust

Use scan_for_bss() instead of scan(freq) to avoid false positives due to
active scan failing under heavy load.

Signed-off-by: Jouni Malinen <j@w1.fi>
Jouni Malinen 10 years ago
parent
commit
5881873b86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/hwsim/test_pmksa_cache.py

+ 1 - 1
tests/hwsim/test_pmksa_cache.py

@@ -206,7 +206,7 @@ def test_pmksa_cache_opportunistic_connect(dev, apdev):
 
     wpas.dump_monitor()
     logger.info("Roam to AP2")
-    wpas.scan(freq="2412")
+    wpas.scan_for_bss(bssid2, freq="2412")
     wpas.request("ROAM " + bssid2)
     ev = wpas.wait_event(["CTRL-EVENT-EAP-STARTED",
                             "CTRL-EVENT-CONNECTED"], timeout=10)