mac80211/hostapd: rework 802.11w driver support selection, do not hardcode drivers...
authorFelix Fietkau <nbd@openwrt.org>
Mon, 14 Sep 2015 06:51:10 +0000 (06:51 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 14 Sep 2015 06:51:10 +0000 (06:51 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 46903

package/kernel/mac80211/Makefile
package/network/services/hostapd/Config.in
package/network/services/hostapd/Makefile

index 28c27ab7ed957bf5c0e5cb32cce0f9e6da07cb7f..a56825f65ed9feb3f344ecd638dc8803df0dc15d 100644 (file)
@@ -559,7 +559,7 @@ define KernelPackage/ath9k-common
   $(call KernelPackage/mac80211/Default)
   TITLE:=Atheros 802.11n wireless devices (common code for ath9k and ath9k_htc)
   URL:=https://wireless.wiki.kernel.org/en/users/drivers/ath9k
-  DEPENDS+= @PCI_SUPPORT||USB_SUPPORT||TARGET_ar71xx +kmod-ath +@DRIVER_11N_SUPPORT +@KERNEL_RELAY
+  DEPENDS+= @PCI_SUPPORT||USB_SUPPORT||TARGET_ar71xx +kmod-ath +@DRIVER_11N_SUPPORT +@DRIVER_11W_SUPPORT +@KERNEL_RELAY
   FILES:= \
        $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_common.ko \
        $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
@@ -607,7 +607,7 @@ define KernelPackage/ath10k
   $(call KernelPackage/mac80211/Default)
   TITLE:=Atheros 802.11ac wireless cards support
   URL:=https://wireless.wiki.kernel.org/en/users/Drivers/ath10k
-  DEPENDS+= @PCI_SUPPORT +kmod-ath +@DRIVER_11N_SUPPORT
+  DEPENDS+= @PCI_SUPPORT +kmod-ath +@DRIVER_11N_SUPPORT +@DRIVER_11W_SUPPORT
   FILES:= \
        $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_core.ko \
        $(PKG_BUILD_DIR)/drivers/net/wireless/ath/ath10k/ath10k_pci.ko
index 65125a36dfd83e6e8b7a6cb2335f6508b025ac36..aee2a15fd314479ba4d5e29a8bb4ec5855a78342 100644 (file)
@@ -46,3 +46,7 @@ config DRIVER_WEXT_SUPPORT
 config DRIVER_11N_SUPPORT
        bool
        default n
+
+config DRIVER_11W_SUPPORT
+       bool
+       default n
index c39b6b410d71154227a212ee514417302a712ddc..edcfd1ba37a53ca381114657a3447117e4979e23 100644 (file)
@@ -71,7 +71,7 @@ DRIVER_MAKEOPTS= \
        CONFIG_DRIVER_WEXT=$(CONFIG_DRIVER_WEXT_SUPPORT) \
 
 ifeq ($(LOCAL_VARIANT),full)
-  DRIVER_MAKEOPTS += CONFIG_IEEE80211W=$(CONFIG_PACKAGE_kmod-ath9k)
+  DRIVER_MAKEOPTS += CONFIG_IEEE80211W=$(CONFIG_DRIVER_11W_SUPPORT)
 endif
 
 ifneq ($(LOCAL_TYPE),hostapd)