Author: nbd
Date: 2014-11-23 15:16:47 +0100 (Sun, 23 Nov 2014)
New Revision: 43345

Modified:
   trunk/package/network/services/hostapd/Makefile
Log:
hostapd: fix build error on some variants with CONFIG_WPA_RFKILL_SUPPORT=y 
(#17765)

Signed-off-by: Felix Fietkau <[email protected]>

Modified: trunk/package/network/services/hostapd/Makefile
===================================================================
--- trunk/package/network/services/hostapd/Makefile     2014-11-23 13:54:28 UTC 
(rev 43344)
+++ trunk/package/network/services/hostapd/Makefile     2014-11-23 14:16:47 UTC 
(rev 43345)
@@ -71,7 +71,6 @@
        CONFIG_IEEE80211N=$(HOSTAPD_IEEE80211N) \
        CONFIG_IEEE80211W=$(CONFIG_PACKAGE_kmod-ath9k) \
        CONFIG_DRIVER_WEXT=$(CONFIG_DRIVER_WEXT_SUPPORT) \
-       $(if $(CONFIG_WPA_RFKILL_SUPPORT),NEED_RFKILL=y)
 
 ifneq ($(LOCAL_TYPE),hostapd)
   ifdef CONFIG_WPA_SUPPLICANT_OPENSSL
@@ -83,6 +82,9 @@
   ifdef CONFIG_WPA_SUPPLICANT_NO_TIMESTAMP_CHECK
     TARGET_CFLAGS += -DNO_TIMESTAMP_CHECK
   endif
+  ifdef CONFIG_WPA_RFKILL_SUPPORT)
+    DRIVER_MAKEOPTS += NEED_RFKILL=y
+  endif
   DRIVER_MAKEOPTS += \
        CONFIG_DRIVER_ROBOSWITCH=$(CONFIG_PACKAGE_kmod-switch)
 endif
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to