aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-10-10 12:42:11 (GMT)
committerJouni Malinen <j@w1.fi>2019-10-10 12:42:11 (GMT)
commit8a9658dbb53da10f04fa4acd69c8f0c33ede3d8a (patch)
tree852fc969a992c72c2e442c34e164c65537ad4dcb
parentf7fe0552249a0cb10904421b0b04d0604b49f1bf (diff)
downloadhostap-8a9658dbb53da10f04fa4acd69c8f0c33ede3d8a.zip
hostap-8a9658dbb53da10f04fa4acd69c8f0c33ede3d8a.tar.gz
hostap-8a9658dbb53da10f04fa4acd69c8f0c33ede3d8a.tar.bz2
tests: SAE and AP sending Confirm message without waiting STA
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
-rw-r--r--tests/hwsim/test_sae.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py
index 8824ad4..1035f16 100644
--- a/tests/hwsim/test_sae.py
+++ b/tests/hwsim/test_sae.py
@@ -1697,3 +1697,15 @@ def test_sae_sync(dev, apdev):
dev[i].select_network(id[i])
for i in range(0, 2):
dev[i].wait_connected(timeout=10)
+
+def test_sae_confirm_immediate(dev, apdev):
+ """SAE and AP sending Confirm message without waiting STA"""
+ 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'
+ params['sae_confirm_immediate'] = '1'
+ hapd = hostapd.add_ap(apdev[0], params)
+
+ dev[0].request("SET sae_groups ")
+ dev[0].connect("test-sae", psk="12345678", key_mgmt="SAE", scan_freq="2412")