tests: Make wpa2_ocv_ap_ht_mismatch more robust

Clear the scan cache on the AP before running this test since the HT40
operation on the 2.4 GHz band might get disallowed based on scan results
from earlier test cases. This was found with the following hwsim test
case sequence failing:
ap_acs_with_fallback_to_20 wpa2_ocv_ap_ht_mismatch

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2022-02-16 21:29:54 +02:00 committed by Jouni Malinen
parent 42944de69b
commit 1e0af0cc7e

View file

@ -445,6 +445,7 @@ def test_wpa2_ocv_ap_mismatch(dev, apdev):
@remote_compatible
def test_wpa2_ocv_ap_ht_mismatch(dev, apdev):
"""OCV AP mismatch (HT)"""
clear_scan_cache(apdev[0])
params = {"channel": "6",
"ht_capab": "[HT40-]",
"ieee80211w": "1",