diff --git a/tests/hwsim/test_pmksa_cache.py b/tests/hwsim/test_pmksa_cache.py index 77cf25bbf..e51ca9198 100644 --- a/tests/hwsim/test_pmksa_cache.py +++ b/tests/hwsim/test_pmksa_cache.py @@ -249,7 +249,7 @@ def test_pmksa_cache_opportunistic_connect(dev, apdev): wpas.dump_monitor() logger.info("Roam to AP2") - wpas.scan_for_bss(bssid2, freq="2412") + wpas.scan_for_bss(bssid2, freq="2412", force_scan=True) wpas.request("ROAM " + bssid2) ev = wpas.wait_event(["CTRL-EVENT-EAP-STARTED", "CTRL-EVENT-CONNECTED"], timeout=10)