]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make rrm_reassociation more robust
authorJouni Malinen <j@w1.fi>
Sat, 23 Mar 2024 20:22:07 +0000 (22:22 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 23 Mar 2024 20:22:07 +0000 (22:22 +0200)
It was possible for this test case to fail if a previously executed test
case left another BSS entry for the BSSID used by the second AP here.
That could have skipped the needed scan with scan_for_bss(bssid2). Force
this command to run a new scan to discover the second AP correctly.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_rrm.py

index 2ab8fd134fb03e3defc680e0da8e5fd9de9c21d0..edf9ac1bf3dc40ee652160436be319b3ccb4c325 100644 (file)
@@ -2397,7 +2397,7 @@ def test_rrm_reassociation(dev, apdev):
 
     hapd2 = hostapd.add_ap(apdev[1]['ifname'], params)
     bssid2 = hapd2.own_addr()
-    dev[0].scan_for_bss(bssid2, freq=2412)
+    dev[0].scan_for_bss(bssid2, freq=2412, force_scan=True)
     dev[0].roam(bssid2)
     hapd2.wait_sta()
     check_beacon_req(hapd2, addr, 2)