]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Flush scan cache for rrm_beacon_req_table_detail
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 26 Jan 2024 10:10:41 +0000 (12:10 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 26 Jan 2024 10:10:41 +0000 (12:10 +0200)
Explicitly flush the scan cache in wpa_supplicant and cfg80211 to avoid
test failures here. An additional BSS table entry from a scan based on a
previous test case could result in causing this test case to report
failure since each beacon response could include multiple entries and
the check for the details would fail due to the unexpected data.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_rrm.py

index 77f47d0cd52818149dcff47cfd503b9f4e06b080..2ab8fd134fb03e3defc680e0da8e5fd9de9c21d0 100644 (file)
@@ -1019,6 +1019,7 @@ def test_rrm_beacon_req_table_detail(dev, apdev):
     params = {"ssid": "rrm", "rrm_beacon_report": "1"}
     hapd = hostapd.add_ap(apdev[0], params)
 
+    dev[0].flush_scan_cache()
     dev[0].connect("rrm", key_mgmt="NONE", scan_freq="2412")
     addr = dev[0].own_addr()
     hapd.wait_sta()