diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-11-27 22:11:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-11-27 22:11:13 +0000 |
commit | 4a12b0531a1ce79b6c60cb8ac13f9c762f9fdd4f (patch) | |
tree | 21ccb0c461bd8622a29d9ff3cb2b06dd2fabaf1d /package/mac80211/patches/008-led_default.patch | |
parent | 6816f4207dea5f27a00b4a5556ff1eb9fb821ca4 (diff) | |
download | master-187ad058-4a12b0531a1ce79b6c60cb8ac13f9c762f9fdd4f.tar.gz master-187ad058-4a12b0531a1ce79b6c60cb8ac13f9c762f9fdd4f.tar.bz2 master-187ad058-4a12b0531a1ce79b6c60cb8ac13f9c762f9fdd4f.zip |
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.patch | 43 |
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 |