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>
This commit is contained in:
Jouni Malinen 2014-12-14 19:15:48 +02:00
parent 7781da6b2b
commit 5881873b86

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