]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make rrm_beacon_req_table_request more robust
authorJouni Malinen <j@w1.fi>
Tue, 31 Dec 2019 09:51:25 +0000 (11:51 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 31 Dec 2019 09:51:25 +0000 (11:51 +0200)
Explicitly clear cfg80211 scan cache to avoid issues with old BSS
entries from previous test cases.

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

index 72af6035f2aef8ca93b7eba2678105957d5f645b..dde98932b6a6c80ded8d4dda4247c82a099d3f39 100644 (file)
@@ -1019,6 +1019,7 @@ def test_rrm_beacon_req_table_request(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()