]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Clear sae_groups in radius_sae_password
authorJouni Malinen <quic_jouni@quicinc.com>
Tue, 31 Jan 2023 10:00:18 +0000 (12:00 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 31 Jan 2023 10:00:18 +0000 (12:00 +0200)
This is needed to avoid failures caused by previous test cases having
left behind constraints on the allowed groups.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_radius.py

index 8014f886981c8687e3f5cf5a3152c91b63bf90a4..032f22ec6940c38101a476a595c2d9b9ab22cc07 100644 (file)
@@ -1388,6 +1388,9 @@ def test_radius_psk_oom(dev, apdev):
 
 def test_radius_sae_password(dev, apdev):
     """WPA3 with SAE password from RADIUS"""
+    check_sae_capab(dev[0])
+    check_sae_capab(dev[1])
+
     t, t_events = start_radius_psk_server("12345678")
 
     try:
@@ -1396,9 +1399,11 @@ def test_radius_sae_password(dev, apdev):
         params["wpa_key_mgmt"] = "SAE"
         params['ieee80211w'] = '2'
         hapd = hostapd.add_ap(apdev[0], params)
+        dev[0].set("sae_groups", "")
         dev[0].connect("test-wpa3-sae", sae_password="12345678", key_mgmt="SAE",
                        ieee80211w="2", scan_freq="2412")
         t_events['psk'] = "0123456789abcdef"
+        dev[1].set("sae_groups", "")
         dev[1].connect("test-wpa3-sae", sae_password="0123456789abcdef",
                        key_mgmt="SAE", ieee80211w="2", scan_freq="2412")
     finally: