]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: SSID verification using beacon protection
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 11 Jul 2024 20:55:14 +0000 (23:55 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 11 Jul 2024 20:55:14 +0000 (23:55 +0300)
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_ap_pmf.py

index 81782ebe2cd9bf01c2e631ce67fa1e6425646dd8..f82ac191536406c157a5e7b4171dbba3a1416827 100644 (file)
@@ -1449,6 +1449,11 @@ def run_ap_pmf_beacon_protection(dev, apdev, cipher):
     if ev is not None:
         raise Exception("Beacon loss detected")
 
+    # Verify that the SSID has been successfully verified from a protected
+    # Beacon frame.
+    if dev[0].get_status_field("ssid_verified") != "1":
+        raise Exception("ssid_verified=1 not in STATUS")
+
 def test_ap_pmf_beacon_protection_mismatch(dev, apdev):
     """WPA2-PSK Beacon protection MIC mismatch"""
     run_ap_pmf_beacon_protection_mismatch(dev, apdev, False)