[ar7] refresh patches and remove trailing whitespaces
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 564-tpt_trigger_idle_fix.patch
1 --- a/net/mac80211/led.c
2 +++ b/net/mac80211/led.c
3 @@ -194,7 +194,7 @@ static void tpt_trig_timer(unsigned long
4 off = 0;
5
6 for (i = tpt_trig->blink_table_len - 1; i >= 0; i--) {
7 - if (tpt >= tpt_trig->blink_table[i].throughput) {
8 + if (tpt > tpt_trig->blink_table[i].throughput) {
9 off = tpt_trig->blink_table[i].blink_time / 2;
10 on = tpt_trig->blink_table[i].blink_time - off;
11 break;
12 --- a/net/mac80211/rx.c
13 +++ b/net/mac80211/rx.c
14 @@ -1877,6 +1877,7 @@ ieee80211_rx_h_data(struct ieee80211_rx_
15 msecs_to_jiffies(local->hw.conf.dynamic_ps_timeout));
16 }
17
18 + ieee80211_tpt_led_trig_rx(local, rx->skb->len);
19 ieee80211_deliver_skb(rx);
20
21 return RX_QUEUED;
22 @@ -2873,7 +2874,6 @@ void ieee80211_rx(struct ieee80211_hw *h
23 return;
24 }
25
26 - ieee80211_tpt_led_trig_rx(local, skb->len);
27 __ieee80211_rx_handle_packet(hw, skb);
28
29 rcu_read_unlock();