From: Jouni Malinen Date: Fri, 27 Dec 2019 20:41:36 +0000 (+0200) Subject: tests: Make rrm_reassociation more robust X-Git-Tag: hostap_2_10~2079 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4415da686d835a4258d2d856cd9159dad906a862;p=thirdparty%2Fhostap.git 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 --- 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)