tests: Clear sae_groups in radius_sae_password

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>
This commit is contained in:
Jouni Malinen 2023-01-31 12:00:18 +02:00 committed by Jouni Malinen
parent a32b424a3d
commit 825a545279

View 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: