]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: SAE anti clogging (forced, H2E + loop)
authorJouni Malinen <jouni@codeaurora.org>
Fri, 7 Feb 2020 23:26:40 +0000 (01:26 +0200)
committerJouni Malinen <jouni@codeaurora.org>
Sat, 8 Feb 2020 05:19:53 +0000 (07:19 +0200)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/test_sae.py

index 67c9230765e5f5a7736ae64dd4061e85cf3afc2b..52d7cf849eaaa97f11b962003d3b2d2b4b89018f 100644 (file)
@@ -2235,3 +2235,23 @@ def test_sae_forced_anti_clogging_h2e(dev, apdev):
     finally:
         for i in range(2):
             dev[i].set("sae_pwe", "0")
+
+def test_sae_forced_anti_clogging_h2e_loop(dev, apdev):
+    """SAE anti clogging (forced, H2E + loop)"""
+    check_sae_capab(dev[0])
+    check_sae_capab(dev[1])
+    params = hostapd.wpa2_params(ssid="test-sae", passphrase="12345678")
+    params['wpa_key_mgmt'] = 'SAE WPA-PSK'
+    params['sae_pwe'] = "2"
+    params['sae_anti_clogging_threshold'] = '0'
+    hostapd.add_ap(apdev[0], params)
+    dev[2].connect("test-sae", psk="12345678", scan_freq="2412")
+    try:
+        for i in range(2):
+            dev[i].request("SET sae_groups ")
+            dev[i].set("sae_pwe", "2")
+            dev[i].connect("test-sae", psk="12345678", key_mgmt="SAE",
+                           scan_freq="2412")
+    finally:
+        for i in range(2):
+            dev[i].set("sae_pwe", "0")