[RFC PATCH] tests: ap_roam_wpa2_psk: increase scan time

Johannes Berg johannes at sipsolutions.net
Thu Jun 25 02:34:42 PDT 2026


From: Johannes Berg <johannes.berg at intel.com>

This test frequently fails for me, sometimes depending on
the order of tests, and works all the time with a longer
scan timeout.

It's not entirely clear why that would affect this test
in particular, so maybe the default timeout should be
changed if hwsim now has more channels and takes longer
to scan.

Signed-off-by: Johannes Berg <johannes.berg at intel.com>
---
 tests/hwsim/test_ap_roam.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/hwsim/test_ap_roam.py b/tests/hwsim/test_ap_roam.py
index 0e72cf900156..468f6fe5768d 100644
--- a/tests/hwsim/test_ap_roam.py
+++ b/tests/hwsim/test_ap_roam.py
@@ -106,7 +106,7 @@ def test_ap_roam_wpa2_psk(dev, apdev):
     hapd0.wait_sta()
     hwsim_utils.test_connectivity(dev[0], hapd0)
     hapd1 = hostapd.add_ap(apdev[1], params)
-    dev[0].scan(type="ONLY")
+    dev[0].scan(type="ONLY", timeout=25)
     dev[0].roam(apdev[1]['bssid'])
     hapd1.wait_sta()
     hwsim_utils.test_connectivity(dev[0], hapd1)
-- 
2.53.0




More information about the Hostap mailing list