From 283be365c346d1e353e0ed182fcdf978b0ba9ac5 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 8 Jan 2020 20:57:26 +0200 Subject: [PATCH] tests: SAE and AP sending Confirm message without waiting STA (2) This goes through sae_confirm_immediate=2 behavior. Signed-off-by: Jouni Malinen --- tests/hwsim/test_sae.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py index da90608d6..aa21f197f 100644 --- a/tests/hwsim/test_sae.py +++ b/tests/hwsim/test_sae.py @@ -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)