diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-11-28 18:28:12 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-11-28 18:28:12 +0000 |
commit | 9419300d8a1b68188478c32fb6980a44f7c7a67d (patch) | |
tree | db9a42ad7233c2f89be7c53c1b4ceb9cf3abd19a /package/mac80211/patches/563-tpt_trigger_register_fix.patch | |
parent | 5ac80d9e71891fdee6c4fea47e90edc2131d5d0e (diff) | |
download | master-187ad058-9419300d8a1b68188478c32fb6980a44f7c7a67d.tar.gz master-187ad058-9419300d8a1b68188478c32fb6980a44f7c7a67d.tar.bz2 master-187ad058-9419300d8a1b68188478c32fb6980a44f7c7a67d.zip |
mac80211: merge the new version of the throughput led trigger patch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24182 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/563-tpt_trigger_register_fix.patch')
-rw-r--r-- | package/mac80211/patches/563-tpt_trigger_register_fix.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/package/mac80211/patches/563-tpt_trigger_register_fix.patch b/package/mac80211/patches/563-tpt_trigger_register_fix.patch deleted file mode 100644 index 270a5558bc..0000000000 --- a/package/mac80211/patches/563-tpt_trigger_register_fix.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- 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); |