From: Jouni Malinen Date: Wed, 23 Feb 2022 22:13:52 +0000 (+0200) Subject: tests: Make OCV test cases more robust by clearing scan results on AP X-Git-Tag: hostap_2_11~2213 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a8fff486fa2152d66c0c20caa882c6aa574e35a;p=thirdparty%2Fhostap.git tests: Make OCV test cases more robust by clearing scan results on AP This is needed to avoid pri/sec channel switching based on potential scan results from the previous test cases. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ocv.py b/tests/hwsim/test_ocv.py index 015d919f6..f22d22717 100644 --- a/tests/hwsim/test_ocv.py +++ b/tests/hwsim/test_ocv.py @@ -131,6 +131,7 @@ def test_wpa2_ocv_ht40(dev, apdev): dev[1].flush_scan_cache() def run_wpa2_ocv_ht40(dev, apdev): + clear_scan_cache(apdev[0]) for channel, capab, freq, mode in [("6", "[HT40-]", "2437", "g"), ("6", "[HT40+]", "2437", "g"), ("40", "[HT40-]", "5200", "a"), @@ -169,6 +170,7 @@ def test_wpa2_ocv_vht40(dev, apdev): dev[2].flush_scan_cache() def run_wpa2_ocv_vht40(dev, apdev): + clear_scan_cache(apdev[0]) for channel, capab, freq in [("40", "[HT40-]", "5200"), ("36", "[HT40+]", "5180")]: params = {"hw_mode": "a", @@ -213,6 +215,7 @@ def test_wpa2_ocv_vht80(dev, apdev): dev[2].flush_scan_cache() def run_wpa2_ocv_vht80(dev, apdev): + clear_scan_cache(apdev[0]) for channel, capab, freq in [("40", "[HT40-]", "5200"), ("36", "[HT40+]", "5180")]: params = {"hw_mode": "a",