hostapd: add config symbol for allowing drivers to enable 802.11ax support
Also expose a build feature for it Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
61307544d1
commit
41d7a14ead
3 changed files with 14 additions and 0 deletions
|
@ -70,6 +70,10 @@ config DRIVER_11AC_SUPPORT
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config DRIVER_11AX_SUPPORT
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
config DRIVER_11W_SUPPORT
|
config DRIVER_11W_SUPPORT
|
||||||
bool
|
bool
|
||||||
default n
|
default n
|
||||||
|
|
|
@ -32,6 +32,7 @@ PKG_CONFIG_DEPENDS:= \
|
||||||
CONFIG_DRIVER_WEXT_SUPPORT \
|
CONFIG_DRIVER_WEXT_SUPPORT \
|
||||||
CONFIG_DRIVER_11N_SUPPORT \
|
CONFIG_DRIVER_11N_SUPPORT \
|
||||||
CONFIG_DRIVER_11AC_SUPPORT \
|
CONFIG_DRIVER_11AC_SUPPORT \
|
||||||
|
CONFIG_DRIVER_11AX_SUPPORT \
|
||||||
CONFIG_WPA_ENABLE_WEP
|
CONFIG_WPA_ENABLE_WEP
|
||||||
|
|
||||||
EAPOL_TEST_PROVIDERS:=eapol-test eapol-test-openssl eapol-test-wolfssl
|
EAPOL_TEST_PROVIDERS:=eapol-test eapol-test-openssl eapol-test-wolfssl
|
||||||
|
@ -81,11 +82,16 @@ ifneq ($(CONFIG_DRIVER_11AC_SUPPORT),)
|
||||||
HOSTAPD_IEEE80211AC:=y
|
HOSTAPD_IEEE80211AC:=y
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(CONFIG_DRIVER_11AX_SUPPORT),)
|
||||||
|
HOSTAPD_IEEE80211AX:=y
|
||||||
|
endif
|
||||||
|
|
||||||
DRIVER_MAKEOPTS= \
|
DRIVER_MAKEOPTS= \
|
||||||
CONFIG_ACS=$(CONFIG_PACKAGE_kmod-cfg80211) \
|
CONFIG_ACS=$(CONFIG_PACKAGE_kmod-cfg80211) \
|
||||||
CONFIG_DRIVER_NL80211=$(CONFIG_PACKAGE_kmod-cfg80211) \
|
CONFIG_DRIVER_NL80211=$(CONFIG_PACKAGE_kmod-cfg80211) \
|
||||||
CONFIG_IEEE80211N=$(HOSTAPD_IEEE80211N) \
|
CONFIG_IEEE80211N=$(HOSTAPD_IEEE80211N) \
|
||||||
CONFIG_IEEE80211AC=$(HOSTAPD_IEEE80211AC) \
|
CONFIG_IEEE80211AC=$(HOSTAPD_IEEE80211AC) \
|
||||||
|
CONFIG_IEEE80211AX=$(HOSTAPD_IEEE80211AX) \
|
||||||
CONFIG_DRIVER_WEXT=$(CONFIG_DRIVER_WEXT_SUPPORT) \
|
CONFIG_DRIVER_WEXT=$(CONFIG_DRIVER_WEXT_SUPPORT) \
|
||||||
|
|
||||||
ifneq ($(LOCAL_VARIANT),mini)
|
ifneq ($(LOCAL_VARIANT),mini)
|
||||||
|
|
|
@ -15,6 +15,10 @@ static inline int has_feature(const char *feat)
|
||||||
if (!strcmp(feat, "11ac"))
|
if (!strcmp(feat, "11ac"))
|
||||||
return 1;
|
return 1;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_IEEE80211AX
|
||||||
|
if (!strcmp(feat, "11ax"))
|
||||||
|
return 1;
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_IEEE80211R
|
#ifdef CONFIG_IEEE80211R
|
||||||
if (!strcmp(feat, "11r"))
|
if (!strcmp(feat, "11r"))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue