]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: SAE and DUMP_BEACON
authorJouni Malinen <j@w1.fi>
Fri, 27 Dec 2024 18:32:12 +0000 (20:32 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 27 Dec 2024 18:32:12 +0000 (20:32 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_sae.py

index 89b5c623f751c4a6ed8e3e0e88282ed14cc4efdf..48bb6bd123d742f7c0d34851e82149a1e0389034 100644 (file)
@@ -3364,3 +3364,21 @@ def test_sae_long_rsnxe(dev, apdev):
     finally:
         dev[0].set("sae_groups", "")
         dev[0].set("sae_pwe", "0")
+
+def test_sae_dump_beacon(dev, apdev):
+    """SAE and DUMP_BEACON"""
+    check_sae_capab(dev[0])
+    params = hostapd.wpa3_params(ssid="test-sae", password="12345678")
+    hapd = hostapd.add_ap(apdev[0], params)
+
+    dev[0].set("sae_groups", "")
+    dev[0].connect("test-sae", sae_password="12345678", key_mgmt="SAE",
+                   ieee80211w="2", scan_freq="2412")
+    hapd.wait_sta()
+    res = hapd.request("DUMP_BEACON")
+    if "FAIL" in res:
+        raise Exception("DUMP_BEACON failed")
+    logger.info("DUMP_BEACON: " + res)
+
+    # Make sure there is enough time to capture at least one Beacon frame
+    time.sleep(0.2)