hostapd: Add ability to specify that that wireless driver supports 802.11ac
authorAlexis Green <agreen@cococorp.com>
Wed, 14 Dec 2016 04:10:35 +0000 (20:10 -0800)
committerFelix Fietkau <nbd@nbd.name>
Tue, 20 Dec 2016 15:24:22 +0000 (16:24 +0100)
Signed-off-by: Alexis Green <agreen@cococorp.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [make more generic]
package/network/services/hostapd/Config.in
package/network/services/hostapd/Makefile

index 645888e74510c5c42c21a7208ee0dcc884fb0e2a..fea5ed3ba38fad4ea498131925b4860396aa6761 100644 (file)
@@ -46,6 +46,10 @@ config DRIVER_11N_SUPPORT
        bool
        default n
 
+config DRIVER_11AC_SUPPORT
+       bool
+       default n
+
 config DRIVER_11W_SUPPORT
        bool
        default n
index 76a519c4cb06f0392fb1c0f615c0c87c2dafcb3e..9f7125205b8dfbeccd8a9fefc04ae103a55d4883 100644 (file)
@@ -31,7 +31,8 @@ PKG_CONFIG_DEPENDS:= \
        CONFIG_PACKAGE_hostapd-mini \
        CONFIG_WPA_RFKILL_SUPPORT \
        CONFIG_DRIVER_WEXT_SUPPORT \
-       CONFIG_DRIVER_11N_SUPPORT
+       CONFIG_DRIVER_11N_SUPPORT \
+       CONFIG_DRIVER_11AC_SUPPORT
 
 LOCAL_TYPE=$(strip \
                $(if $(findstring wpad,$(BUILD_VARIANT)),wpad, \
@@ -62,10 +63,15 @@ ifneq ($(CONFIG_DRIVER_11N_SUPPORT),)
   HOSTAPD_IEEE80211N:=y
 endif
 
+ifneq ($(CONFIG_DRIVER_11AC_SUPPORT),)
+  HOSTAPD_IEEE80211AC:=y
+endif
+
 DRIVER_MAKEOPTS= \
        CONFIG_ACS=$(CONFIG_PACKAGE_kmod-cfg80211) \
        CONFIG_DRIVER_NL80211=$(CONFIG_PACKAGE_kmod-cfg80211) \
        CONFIG_IEEE80211N=$(HOSTAPD_IEEE80211N) \
+       CONFIG_IEEE80211AC=$(HOSTAPD_IEEE80211AC) \
        CONFIG_DRIVER_WEXT=$(CONFIG_DRIVER_WEXT_SUPPORT) \
 
 ifeq ($(LOCAL_VARIANT),full)