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 <quic_jouni@quicinc.com>
This commit is contained in:
parent
414ca953f1
commit
7a8fff486f
1 changed files with 3 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue