hostapd: add CONFIG_DRIVER_11BE_SUPPORT
authorJanusz Dziedzic <janusz.dziedzic@gmail.com>
Tue, 20 Aug 2024 06:29:18 +0000 (08:29 +0200)
committerJohn Crispin <john@phrozen.org>
Wed, 2 Oct 2024 13:12:18 +0000 (15:12 +0200)
Add option to enable 802.11BE support.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
package/network/services/hostapd/Config.in
package/network/services/hostapd/Makefile
package/network/services/hostapd/src/src/utils/build_features.h

index 1fff4f8acd530b1c0fc30d02e8eef1b698ab1a4c..742cd78a14627b6af15dde26499819e2f6a87fb0 100644 (file)
@@ -40,6 +40,10 @@ config DRIVER_11AX_SUPPORT
        default n
        select WPA_MBO_SUPPORT
 
+config DRIVER_11BE_SUPPORT
+       bool
+       default n
+
 config WPA_ENABLE_WEP
        bool "Enable support for unsecure and obsolete WEP"
        depends on PACKAGE_hostapd-common
index 1c0b6548662e37e57d25757aa7ea2ee79b198f23..0e3396262d0c13600534ef443d8abba8a348a959 100644 (file)
@@ -27,6 +27,7 @@ PKG_CONFIG_DEPENDS:= \
        CONFIG_WPA_RFKILL_SUPPORT \
        CONFIG_DRIVER_11AC_SUPPORT \
        CONFIG_DRIVER_11AX_SUPPORT \
+       CONFIG_DRIVER_11BE_SUPPORT \
        CONFIG_WPA_ENABLE_WEP
 
 PKG_BUILD_FLAGS:=gc-sections lto
@@ -79,6 +80,10 @@ ifneq ($(CONFIG_DRIVER_11AX_SUPPORT),)
   HOSTAPD_IEEE80211AX:=y
 endif
 
+ifneq ($(CONFIG_DRIVER_11BE_SUPPORT),)
+  HOSTAPD_IEEE80211BE:=y
+endif
+
 CORE_DEPENDS = +ucode +libubus +libucode +ucode-mod-fs +ucode-mod-nl80211 +ucode-mod-rtnl +ucode-mod-ubus +ucode-mod-uloop +libblobmsg-json +libudebug
 OPENSSL_DEPENDS = +PACKAGE_$(1):libopenssl +PACKAGE_$(1):libopenssl-legacy
 
@@ -86,6 +91,7 @@ DRIVER_MAKEOPTS= \
        CONFIG_ACS=y CONFIG_DRIVER_NL80211=y \
        CONFIG_IEEE80211AC=$(HOSTAPD_IEEE80211AC) \
        CONFIG_IEEE80211AX=$(HOSTAPD_IEEE80211AX) \
+       CONFIG_IEEE80211BE=$(HOSTAPD_IEEE80211BE) \
        CONFIG_MBO=$(CONFIG_WPA_MBO_SUPPORT) \
        CONFIG_UCODE=y CONFIG_APUP=y
 
index 553769ecebc84c0f064e743daba47e447def5c85..cc8831535c68da7d981480b97fc268e0fedd1c3f 100644 (file)
@@ -15,6 +15,10 @@ static inline int has_feature(const char *feat)
        if (!strcmp(feat, "11ax"))
                return 1;
 #endif
+#ifdef CONFIG_IEEE80211BE
+       if (!strcmp(feat, "11be"))
+               return 1;
+#endif
 #ifdef CONFIG_IEEE80211R
        if (!strcmp(feat, "11r"))
                return 1;