diff mbox series

[v2] Enable beacon protection if IEEE 802.11be is enabled for BSS

Message ID DM4PR19MB61734EAF310269DA2304AFC7A8362@DM4PR19MB6173.namprd19.prod.outlook.com
State New
Headers show
Series [v2] Enable beacon protection if IEEE 802.11be is enabled for BSS | expand

Commit Message

Jurijs Soloveckis March 25, 2024, 1:23 p.m. UTC
IEEE P802.11be/D3.0, 4.3.16a Extremely high throughput (EHT) STA
requires beacon protection support for an EHT AP, therefore beacon
protection is enabled if IEEE 802.11be is set for BSS

Signed-off-by: Jurijs Soloveckis <jsoloveckis@maxlinear.com>
---
 src/ap/ap_config.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/src/ap/ap_config.c b/src/ap/ap_config.c
index 1a18df617..42c61604b 100644
--- a/src/ap/ap_config.c
+++ b/src/ap/ap_config.c
@@ -1491,6 +1491,12 @@  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) {
+		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) {