]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Update sae_password_id_pwe_looping to match implementation
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 1 Nov 2024 10:24:34 +0000 (12:24 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 1 Nov 2024 10:36:09 +0000 (12:36 +0200)
Now that hostapd was changed to explicitly reject attempts of using SAE
password identifiers without H2E, this test case needs to be updated to
not expect connection.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_sae.py

index c119271c4460c1a491089b178bc279b90694246e..d5a7a2342ba5f53baebedae0984999b364c1126b 100644 (file)
@@ -1896,9 +1896,12 @@ def test_sae_password_id_pwe_looping(dev, apdev):
         dev[0].set("sae_pwe", "3")
         dev[0].connect("test-sae", sae_password="secret",
                        sae_password_id="pw id",
-                       key_mgmt="SAE", scan_freq="2412")
-        if dev[0].get_status_field("ssid_verified") == "1":
-            raise Exception("Unexpected ssid_verified=1 in STATUS")
+                       key_mgmt="SAE", scan_freq="2412", wait_connect=False)
+        ev = dev[0].wait_event(["CTRL-EVENT-SAE-UNKNOWN-PASSWORD-IDENTIFIER"],
+                               timeout=10)
+        dev[0].request("DISCONNECT")
+        if ev is None:
+            raise Exception("Unknown password identifier not reported")
     finally:
         dev[0].set("sae_pwe", "0")