summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/563-tpt_trigger_register_fix.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-11-27 22:11:13 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-11-27 22:11:13 +0000
commitdc90b681225c7830c9c0158b9f0caa5a973bb06a (patch)
tree13e22a3de4c92ede4bd94c82026991f7df9da931 /package/mac80211/patches/563-tpt_trigger_register_fix.patch
parent256f94dea403d8f25450ab6e03bc18ff9baa7c4a (diff)
downloadmtk-20170518-dc90b681225c7830c9c0158b9f0caa5a973bb06a.zip
mtk-20170518-dc90b681225c7830c9c0158b9f0caa5a973bb06a.tar.gz
mtk-20170518-dc90b681225c7830c9c0158b9f0caa5a973bb06a.tar.bz2
mac80211: add pending patches for throughput based led blinking and replace the broken ath9k blinking code with it
SVN-Revision: 24159
Diffstat (limited to 'package/mac80211/patches/563-tpt_trigger_register_fix.patch')
-rw-r--r--package/mac80211/patches/563-tpt_trigger_register_fix.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/mac80211/patches/563-tpt_trigger_register_fix.patch b/package/mac80211/patches/563-tpt_trigger_register_fix.patch
new file mode 100644
index 0000000..270a555
--- /dev/null
+++ b/package/mac80211/patches/563-tpt_trigger_register_fix.patch
@@ -0,0 +1,29 @@
+--- a/net/mac80211/led.c
++++ b/net/mac80211/led.c
+@@ -103,13 +103,6 @@ void ieee80211_led_init(struct ieee80211
+ local->radio_led = NULL;
+ }
+ }
+-
+- if (local->tpt_led_trigger) {
+- if (led_trigger_register(&local->tpt_led_trigger->trig)) {
+- kfree(local->tpt_led_trigger);
+- local->tpt_led_trigger = NULL;
+- }
+- }
+ }
+
+ void ieee80211_led_exit(struct ieee80211_local *local)
+@@ -243,6 +236,12 @@ extern char *__ieee80211_create_tpt_led_
+
+ local->tpt_led_trigger = tpt_trig;
+
++ if (led_trigger_register(&local->tpt_led_trigger->trig)) {
++ kfree(local->tpt_led_trigger);
++ local->tpt_led_trigger = NULL;
++ return NULL;
++ }
++
+ return tpt_trig->name;
+ }
+ EXPORT_SYMBOL(__ieee80211_create_tpt_led_trigger);