]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make ap_sae_tdls more robust
authorJouni Malinen <j@w1.fi>
Sun, 14 Feb 2021 18:16:18 +0000 (20:16 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 14 Feb 2021 18:16:18 +0000 (20:16 +0200)
Need to clear sae_groups parameter before using SAE in this test case to
avoid issues if previous test cases have left a specific group
configured.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_tdls.py

index a2bf6d498a71e3426b93b2dcefa40d9330acdad9..8cdd002355677b5720e4815aa1df7c19e0b77bcc 100644 (file)
@@ -639,6 +639,8 @@ def test_ap_sae_tdls(dev, apdev):
     """SAE AP and two stations using TDLS"""
     check_sae_capab(dev[0])
     check_sae_capab(dev[1])
+    dev[0].request("SET sae_groups ")
+    dev[1].request("SET sae_groups ")
     params = hostapd.wpa2_params(ssid="test-wpa2-psk", passphrase="12345678")
     params['wpa_key_mgmt'] = 'SAE'
     params["ieee80211w"] = "2"