]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Verify bigtk_set=1 indication
authorJouni Malinen <quic_jouni@quicinc.com>
Thu, 11 Jul 2024 20:16:05 +0000 (23:16 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 11 Jul 2024 20:16:05 +0000 (23:16 +0300)
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
tests/hwsim/test_ap_pmf.py

index 4b2cc5bbd1b3134186675ec0bb9f381ef099ab47..81782ebe2cd9bf01c2e631ce67fa1e6425646dd8 100644 (file)
@@ -1426,10 +1426,14 @@ def run_ap_pmf_beacon_protection(dev, apdev, cipher):
     # STA with Beacon protection enabled
     dev[0].connect(ssid, psk="12345678", ieee80211w="2", beacon_prot="1",
                    key_mgmt="WPA-PSK-SHA256", proto="WPA2", scan_freq="2412")
+    if dev[0].get_status_field("bigtk_set") != "1":
+        raise Exception("bigtk_set=1 not indicated")
 
     # STA with Beacon protection disabled
     dev[1].connect(ssid, psk="12345678", ieee80211w="2",
                    key_mgmt="WPA-PSK-SHA256", proto="WPA2", scan_freq="2412")
+    if dev[1].get_status_field("bigtk_set") == "1":
+        raise Exception("Unexpected bigtk_set=1 indication")
 
     time.sleep(1)
     check_mac80211_bigtk(dev[0], hapd)