From 4415da686d835a4258d2d856cd9159dad906a862 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 27 Dec 2019 22:41:36 +0200 Subject: [PATCH] tests: Make rrm_reassociation more robust Flush cfg80211 scan cache explicitly when running this test case to avoid issues with the ROAM command not working due to a scan result from an earlier test case. This was causing failures in the following test case sequence: rrm_beacon_req_active_ap_channels rrm_reassociation 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 d7d1ed3ba..72af6035f 100644 --- a/tests/hwsim/test_rrm.py +++ b/tests/hwsim/test_rrm.py @@ -2096,6 +2096,7 @@ def test_rrm_reassociation(dev, apdev): bssid = hapd.own_addr() addr = dev[0].own_addr() + dev[0].flush_scan_cache() dev[0].connect("rrm", key_mgmt="NONE", scan_freq="2412") check_beacon_req(hapd, addr, 1)