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:
parent
7781da6b2b
commit
5881873b86
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue