tests: Make rrm_reassociation more robust

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>
This commit is contained in:
Jouni Malinen 2024-03-23 22:22:07 +02:00
parent 9144f876a5
commit 64c3c58080

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