From: Jouni Malinen Date: Wed, 8 Jan 2020 18:57:26 +0000 (+0200) Subject: tests: SAE and AP sending Confirm message without waiting STA (2) X-Git-Tag: hostap_2_10~1965 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=283be365c346d1e353e0ed182fcdf978b0ba9ac5;p=thirdparty%2Fhostap.git tests: SAE and AP sending Confirm message without waiting STA (2) This goes through sae_confirm_immediate=2 behavior. Signed-off-by: Jouni Malinen --- 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)