]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: SAE and AP sending Confirm message without waiting STA (2)
authorJouni Malinen <jouni@codeaurora.org>
Wed, 8 Jan 2020 18:57:26 +0000 (20:57 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 8 Jan 2020 18:58:18 +0000 (20:58 +0200)
This goes through sae_confirm_immediate=2 behavior.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_sae.py

index da90608d6bc51013a168408b5be4d550ee3b3fc5..aa21f197fd6b697f280cb81d3a602d4363ff6bd5 100644 (file)
@@ -1868,6 +1868,18 @@ def test_sae_confirm_immediate(dev, apdev):
     dev[0].request("SET sae_groups ")
     dev[0].connect("test-sae", psk="12345678", key_mgmt="SAE", scan_freq="2412")
 
+def test_sae_confirm_immediate2(dev, apdev):
+    """SAE and AP sending Confirm message without waiting STA (2)"""
+    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'] = '2'
+    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")
+
 def test_sae_pwe_group_19(dev, apdev):
     """SAE PWE derivation options with group 19"""
     run_sae_pwe_group(dev, apdev, 19)