]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: SAE and AP sending Confirm message without waiting STA
authorJouni Malinen <jouni@codeaurora.org>
Thu, 10 Oct 2019 12:42:11 +0000 (15:42 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 10 Oct 2019 12:42:11 +0000 (15:42 +0300)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_sae.py

index 8824ad4c6f550a5f4d232d508c54f9b5c3074deb..1035f16d7c4279aa4d974ba9cda5ab09398feee1 100644 (file)
@@ -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")