diff mbox series

Enable beacon protection if IEEE 802.11be is enabled for BSS

Message ID DM4PR19MB6173D1C1C4AF03A4C85F01EBA82A2@DM4PR19MB6173.namprd19.prod.outlook.com
State Superseded
Headers show
Series Enable beacon protection if IEEE 802.11be is enabled for BSS | expand

Commit Message

Jurijs Soloveckis March 13, 2024, 12:27 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 a28ebbb5d..3a4728c50 100644
--- a/src/ap/ap_config.c
+++ b/src/ap/ap_config.c
@@ -1489,6 +1489,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 = 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) {