summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/564-tpt_trigger_idle_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/564-tpt_trigger_idle_fix.patch
parent256f94dea403d8f25450ab6e03bc18ff9baa7c4a (diff)
downloadmaster-31e0f0ae-dc90b681225c7830c9c0158b9f0caa5a973bb06a.tar.gz
master-31e0f0ae-dc90b681225c7830c9c0158b9f0caa5a973bb06a.tar.bz2
master-31e0f0ae-dc90b681225c7830c9c0158b9f0caa5a973bb06a.zip
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/564-tpt_trigger_idle_fix.patch')
-rw-r--r--package/mac80211/patches/564-tpt_trigger_idle_fix.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/mac80211/patches/564-tpt_trigger_idle_fix.patch b/package/mac80211/patches/564-tpt_trigger_idle_fix.patch
new file mode 100644
index 0000000000..3578bcf0c7
--- /dev/null
+++ b/package/mac80211/patches/564-tpt_trigger_idle_fix.patch
@@ -0,0 +1,29 @@
+--- a/net/mac80211/led.c
++++ b/net/mac80211/led.c
+@@ -194,7 +194,7 @@ static void tpt_trig_timer(unsigned long
+ off = 0;
+
+ for (i = tpt_trig->blink_table_len - 1; i >= 0; i--) {
+- if (tpt >= tpt_trig->blink_table[i].throughput) {
++ if (tpt > tpt_trig->blink_table[i].throughput) {
+ off = tpt_trig->blink_table[i].blink_time / 2;
+ on = tpt_trig->blink_table[i].blink_time - off;
+ break;
+--- a/net/mac80211/rx.c
++++ b/net/mac80211/rx.c
+@@ -1877,6 +1877,7 @@ ieee80211_rx_h_data(struct ieee80211_rx_
+ msecs_to_jiffies(local->hw.conf.dynamic_ps_timeout));
+ }
+
++ ieee80211_tpt_led_trig_rx(local, rx->skb->len);
+ ieee80211_deliver_skb(rx);
+
+ return RX_QUEUED;
+@@ -2873,7 +2874,6 @@ void ieee80211_rx(struct ieee80211_hw *h
+ return;
+ }
+
+- ieee80211_tpt_led_trig_rx(local, skb->len);
+ __ieee80211_rx_handle_packet(hw, skb);
+
+ rcu_read_unlock();