]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Clear SAE groups before the HE 6 GHz test cases
authorJouni Malinen <quic_jouni@quicinc.com>
Tue, 14 Feb 2023 11:55:36 +0000 (13:55 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 14 Feb 2023 11:55:36 +0000 (13:55 +0200)
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_he.py

index 01bf9eda758c31bda97a9f42d02014d7164c67b5..c707bab7cc5219c803226d0d5c1780aa54725760 100644 (file)
@@ -1163,6 +1163,8 @@ def test_he_twt(dev, apdev):
 
 def test_he_6ghz(dev, apdev):
     """HE with 20 MHz channel width on 6 GHz"""
+    check_sae_capab(dev[0])
+
     try:
         dev[0].set("sae_pwe", "1")
         hapd = None
@@ -1180,6 +1182,7 @@ def test_he_6ghz(dev, apdev):
         hapd = hostapd.add_ap(apdev[0], params, set_channel=False)
         bssid = apdev[0]['bssid']
 
+        dev[0].set("sae_groups", "")
         dev[0].connect("he", sae_password="password", key_mgmt="SAE",
                        ieee80211w="2", scan_freq="5975")
         hwsim_utils.test_connectivity(dev[0], hapd)
@@ -1219,6 +1222,7 @@ def test_he_6ghz(dev, apdev):
 
 def test_he_6ghz_auto_security(dev, apdev):
     """HE on 6 GHz and automatic security settings on STA"""
+    check_sae_capab(dev[0])
     try:
         hapd = None
         params = {"ssid": "he",
@@ -1234,6 +1238,7 @@ def test_he_6ghz_auto_security(dev, apdev):
         hapd = hostapd.add_ap(apdev[0], params, set_channel=False)
         bssid = apdev[0]['bssid']
 
+        dev[0].set("sae_groups", "")
         dev[0].connect("he", psk="password", key_mgmt="SAE WPA-PSK",
                        ieee80211w="1", scan_freq="5975")
         status = dev[0].get_status()