fix mac80211 build for platforms that have led support disabled
fix mac80211 build for platforms that have led support disabled

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8138 3c298f89-4303-0410-b956-a3cf2f4a3e73

--- a/package/mac80211/Makefile
+++ b/package/mac80211/Makefile
@@ -48,7 +48,7 @@
 	ARCH="$(LINUX_KARCH)" \
 	EXTRA_CFLAGS="$(BUILDFLAGS) -DCONFIG_MAC80211_LEDS -DCONFIG_LEDS_TRIGGERS" \
 	CONFIG_MAC80211=m \
-	CONFIG_MAC80211_LEDS=y
+	CONFIG_MAC80211_LEDS=$(CONFIG_LEDS_TRIGGERS)
 
 ifneq ($(KERNEL_PATCHVER),2.6.21)
   define Build/Compile

comments