]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: sae_pwe parameter in PSK-only-AP
authorJouni Malinen <jouni@codeaurora.org>
Thu, 28 Nov 2019 22:13:08 +0000 (00:13 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 28 Nov 2019 22:13:08 +0000 (00:13 +0200)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_sae.py

index e45287d4478ee4ab0990ef5924446dc7db434f0e..5338a1ad868cc240659d16cd0b43b1387d9b52fb 100644 (file)
@@ -2033,6 +2033,14 @@ def test_sae_h2e_password_id(dev, apdev):
         dev[0].set("sae_groups", "")
         dev[0].set("sae_pwe", "0")
 
+def test_sae_pwe_in_psk_ap(dev, apdev):
+    """sae_pwe parameter in PSK-only-AP"""
+    params = hostapd.wpa2_params(ssid="test-psk", passphrase="12345678")
+    params['sae_pwe'] = '1'
+    hapd = hostapd.add_ap(apdev[0], params)
+
+    dev[0].connect("test-psk", psk="12345678", scan_freq="2412")
+
 def test_sae_auth_restart(dev, apdev):
     """SAE and authentication restarts with H2E/looping"""
     if "SAE" not in dev[0].get_capability("auth_alg"):