aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/510-ath9k_led_cleanup.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-12-10 12:00:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-12-10 12:00:09 +0000
commitd770298657b0795bc6476b837c9c1e981c6cc543 (patch)
tree7e0a589252d3359d2b757b1a324f33ea8d97364d /package/mac80211/patches/510-ath9k_led_cleanup.patch
parent7da7badd3e87db5333bc47e4b1bfc7a9809843d0 (diff)
downloadupstream-d770298657b0795bc6476b837c9c1e981c6cc543.tar.gz
upstream-d770298657b0795bc6476b837c9c1e981c6cc543.tar.bz2
upstream-d770298657b0795bc6476b837c9c1e981c6cc543.zip
mac80211: fix compile errors when LED support in the kernel is disabled
SVN-Revision: 24411
Diffstat (limited to 'package/mac80211/patches/510-ath9k_led_cleanup.patch')
-rw-r--r--package/mac80211/patches/510-ath9k_led_cleanup.patch4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/mac80211/patches/510-ath9k_led_cleanup.patch b/package/mac80211/patches/510-ath9k_led_cleanup.patch
index 968804ad3a..84d7b0613b 100644
--- a/package/mac80211/patches/510-ath9k_led_cleanup.patch
+++ b/package/mac80211/patches/510-ath9k_led_cleanup.patch
@@ -286,13 +286,15 @@
static void ath9k_deinit_softc(struct ath_softc *sc);
/*
-@@ -750,6 +764,10 @@ int ath9k_init_device(u16 devid, struct
+@@ -750,6 +764,12 @@ int ath9k_init_device(u16 devid, struct
ath9k_init_txpower_limits(sc);
++#ifdef CONFIG_MAC80211_LEDS
+ /* must be initialized before ieee80211_register_hw */
+ sc->led_cdev.default_trigger = ieee80211_create_tpt_led_trigger(sc->hw,
+ ath9k_tpt_blink, ARRAY_SIZE(ath9k_tpt_blink));
++#endif
+
/* Register with mac80211 */
error = ieee80211_register_hw(hw);