]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Enable beacon protection if IEEE 802.11be/EHT is enabled for BSS
authorJurijs Soloveckis <jsoloveckis@maxlinear.com>
Mon, 25 Mar 2024 13:23:12 +0000 (13:23 +0000)
committerJouni Malinen <j@w1.fi>
Thu, 9 Jan 2025 20:57:47 +0000 (22:57 +0200)
IEEE P802.11be/D7.0, 12.12.9 (Security constraints for EHT) mandates
beacon protection to be enabled in EHT AP when using RSN. Do this
automatically even if beacon_prot=1 is not included in the
configuration.

Signed-off-by: Jurijs Soloveckis <jsoloveckis@maxlinear.com>
src/ap/ap_config.c

index 160809a27e151a308dd0118474a0b47d14b1c486..a68454c01a934f1ad0ccf2f951d25392e914e278 100644 (file)
@@ -1511,6 +1511,13 @@ static int hostapd_config_check_bss(struct hostapd_bss_config *bss,
                wpa_printf(MSG_INFO,
                           "Disabling IEEE 802.11be as IEEE 802.11ax is disabled for this BSS");
        }
+
+       if (full_config && conf->ieee80211be && !bss->disable_11be &&
+           !bss->beacon_prot && ap_pmf_enabled(bss)) {
+               bss->beacon_prot = 1;
+               wpa_printf(MSG_INFO,
+                          "Enabling beacon protection as IEEE 802.11be is enabled for this BSS");
+       }
 #endif /* CONFIG_IEEE80211BE */
 
        if (full_config && bss->ignore_broadcast_ssid && conf->mbssid) {