summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/008-led_default.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-11-27 22:11:13 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-11-27 22:11:13 +0000
commitb365f2b79a681a3afc3b487fd5fa659f83725bd7 (patch)
tree21ccb0c461bd8622a29d9ff3cb2b06dd2fabaf1d /package/mac80211/patches/008-led_default.patch
parent53f5427aef25954c69cd8ef96425a47ded1c1fb2 (diff)
mac80211: add pending patches for throughput based led blinking and replace the broken ath9k blinking code with it
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24159 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/008-led_default.patch')
-rw-r--r--package/mac80211/patches/008-led_default.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/package/mac80211/patches/008-led_default.patch b/package/mac80211/patches/008-led_default.patch
index cdfe19b60a..164be5bac9 100644
--- a/package/mac80211/patches/008-led_default.patch
+++ b/package/mac80211/patches/008-led_default.patch
@@ -36,49 +36,6 @@
# Atheros
CONFIG_ATH_COMMON=m
---- a/drivers/net/wireless/ath/ath9k/gpio.c
-+++ b/drivers/net/wireless/ath/ath9k/gpio.c
-@@ -54,6 +54,7 @@ static void ath_led_blink_work(struct wo
- sc->sc_flags |= SC_OP_LED_ON;
- }
-
-+#ifdef CONFIG_LEDS_CLASS
- static void ath_led_brightness(struct led_classdev *led_cdev,
- enum led_brightness brightness)
- {
-@@ -90,10 +91,12 @@ static void ath_led_brightness(struct le
- break;
- }
- }
-+#endif
-
- static int ath_register_led(struct ath_softc *sc, struct ath_led *led,
- char *trigger)
- {
-+#ifdef CONFIG_LEDS_CLASS
- int ret;
-
- led->sc = sc;
-@@ -108,14 +111,19 @@ static int ath_register_led(struct ath_s
- else
- led->registered = 1;
- return ret;
-+#else
-+ return 0;
-+#endif
- }
-
- static void ath_unregister_led(struct ath_led *led)
- {
-+#ifdef CONFIG_LEDS_CLASS
- if (led->registered) {
- led_classdev_unregister(&led->led_cdev);
- led->registered = 0;
- }
-+#endif
- }
-
- void ath_deinit_leds(struct ath_softc *sc)
--- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c
@@ -822,6 +822,7 @@ static void ath9k_led_brightness_work(st