aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2018-04-09 10:09:49 (GMT)
committerJouni Malinen <j@w1.fi>2018-04-09 16:34:44 (GMT)
commitfa617ee6a0b2d39e6372c93ef9437caa3bd9065a (patch)
tree0bdcc78d233db818809c4db373923e6b47cd1339
parent852b2f2738178f90b95c886176faf75ef301a296 (diff)
downloadhostap-fa617ee6a0b2d39e6372c93ef9437caa3bd9065a.zip
hostap-fa617ee6a0b2d39e6372c93ef9437caa3bd9065a.tar.gz
hostap-fa617ee6a0b2d39e6372c93ef9437caa3bd9065a.tar.bz2
tests: SAE and PSK enabled in wpa_supplicant network profile
Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_sae.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py
index a8a6d0d..922e78d 100644
--- a/tests/hwsim/test_sae.py
+++ b/tests/hwsim/test_sae.py
@@ -251,6 +251,29 @@ def test_sae_mixed(dev, apdev):
dev[i].connect("test-sae", psk="12345678", key_mgmt="SAE",
scan_freq="2412")
+def test_sae_and_psk(dev, apdev):
+ """SAE and PSK enabled in network profile"""
+ if "SAE" not in dev[0].get_capability("auth_alg"):
+ raise HwsimSkip("SAE not supported")
+ params = hostapd.wpa2_params(ssid="test-sae", passphrase="12345678")
+ params['wpa_key_mgmt'] = 'SAE'
+ hostapd.add_ap(apdev[0], params)
+
+ dev[0].request("SET sae_groups ")
+ dev[0].connect("test-sae", psk="12345678", key_mgmt="SAE WPA-PSK",
+ scan_freq="2412")
+
+def test_sae_and_psk2(dev, apdev):
+ """SAE and PSK enabled in network profile (use PSK)"""
+ if "SAE" not in dev[0].get_capability("auth_alg"):
+ raise HwsimSkip("SAE not supported")
+ params = hostapd.wpa2_params(ssid="test-psk", passphrase="12345678")
+ hostapd.add_ap(apdev[0], params)
+
+ dev[0].request("SET sae_groups ")
+ dev[0].connect("test-psk", psk="12345678", key_mgmt="SAE WPA-PSK",
+ scan_freq="2412")
+
def test_sae_mixed_mfp(dev, apdev):
"""Mixed SAE and non-SAE network and MFP required with SAE"""
if "SAE" not in dev[0].get_capability("auth_alg"):