From be5dda94e5989d179f9c0a6872a34d862ca9cde1 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 31 Dec 2019 11:51:25 +0200 Subject: [PATCH] tests: Make rrm_beacon_req_table_request more robust Explicitly clear cfg80211 scan cache to avoid issues with old BSS entries from previous test cases. Signed-off-by: Jouni Malinen --- tests/hwsim/test_rrm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/hwsim/test_rrm.py b/tests/hwsim/test_rrm.py index 72af6035f..dde98932b 100644 --- a/tests/hwsim/test_rrm.py +++ b/tests/hwsim/test_rrm.py @@ -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()