]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make wpa2_ocv_ap_ht_mismatch more robust
authorJouni Malinen <quic_jouni@quicinc.com>
Wed, 16 Feb 2022 19:29:54 +0000 (21:29 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 16 Feb 2022 19:29:54 +0000 (21:29 +0200)
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>
tests/hwsim/test_ocv.py

index e93cea6ffa1806428b0359e6e4ae0423be196e6c..015d919f6708147646eecf4e66a63bbd5302b07e 100644 (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",