From 7a8fff486fa2152d66c0c20caa882c6aa574e35a Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 24 Feb 2022 00:13:52 +0200 Subject: [PATCH] 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 --- tests/hwsim/test_ocv.py | 3 +++ 1 file changed, 3 insertions(+) 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",