]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make pmksa_cache_opportunistic_connect more robust
authorJouni Malinen <j@w1.fi>
Sun, 14 Dec 2014 17:15:48 +0000 (19:15 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 14 Dec 2014 17:15:48 +0000 (19:15 +0200)
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>
tests/hwsim/test_pmksa_cache.py

index 05b9d8db69620da2327645de79c033b98c0f4712..21bb315a7321de4ed65c0d5be65cc7ddbee99254 100644 (file)
@@ -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)