From: Jouni Malinen Date: Fri, 27 Dec 2024 18:32:12 +0000 (+0200) Subject: tests: SAE and DUMP_BEACON X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2556ecdc06b5e69df6292e2bb5bb25909ae6546b;p=thirdparty%2Fhostap.git tests: SAE and DUMP_BEACON Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py index 89b5c623f..48bb6bd12 100644 --- a/tests/hwsim/test_sae.py +++ b/tests/hwsim/test_sae.py @@ -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)