]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: SAE and password identifier (exclusively)
authorJouni Malinen <jouni@codeaurora.org>
Wed, 23 Jan 2019 22:01:17 +0000 (00:01 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 23 Jan 2019 22:20:49 +0000 (00:20 +0200)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_sae.py

index 2a2b887a47434dc0b56c711ea926179cf8304c5c..75003fac11bf8cf5aabb97e0bab0f588721c6016 100644 (file)
@@ -1322,6 +1322,19 @@ def test_sae_password_id_ffc(dev, apdev):
     """SAE and password identifier (FFC)"""
     run_sae_password_id(dev, apdev, "22")
 
+def test_sae_password_id_only(dev, apdev):
+    """SAE and password identifier (exclusively)"""
+    if "SAE" not in dev[0].get_capability("auth_alg"):
+        raise HwsimSkip("SAE not supported")
+    params = hostapd.wpa2_params(ssid="test-sae")
+    params['wpa_key_mgmt'] = 'SAE'
+    params['sae_password'] = 'secret|id=pw id'
+    hapd = hostapd.add_ap(apdev[0], params)
+
+    dev[0].request("SET sae_groups ")
+    dev[0].connect("test-sae", sae_password="secret", sae_password_id="pw id",
+                   key_mgmt="SAE", scan_freq="2412")
+
 def test_sae_forced_anti_clogging_pw_id(dev, apdev):
     """SAE anti clogging (forced and Password Identifier)"""
     if "SAE" not in dev[0].get_capability("auth_alg"):