Selaa lähdekoodia

hostapd: add CONFIG_DRIVER_11BE_SUPPORT

Add option to enable 802.11BE support.

Signed-off-by: Janusz Dziedzic <[email protected]>
Janusz Dziedzic 1 vuosi sitten
vanhempi
sitoutus
b1d6068330

+ 4 - 0
package/network/services/hostapd/Config.in

@@ -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

+ 6 - 0
package/network/services/hostapd/Makefile

@@ -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
 

+ 4 - 0
package/network/services/hostapd/src/src/utils/build_features.h

@@ -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;