diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-11-30 02:58:45 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-22 14:33:37 -0500 |
commit | e1e5406854378dfada3f33c7192b012083a5b8e0 (patch) | |
tree | e878058f28b8f6db50ef5d73d09aed66dd9ad9f2 /net/mac80211/rx.c | |
parent | fe67c913f1ec2a01aaa9176c80ef36eaf87d705d (diff) |
mac80211: add throughput based LED blink trigger
iwlwifi and other drivers like to blink their LED
based on throughput. Implement this generically in
mac80211, based on a throughput table the driver
specifies. That way, drivers can set the blink
frequencies depending on their desired behaviour
and max throughput.
All the drivers need to do is provide an LED class
device, best with blink hardware offload.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/rx.c')
-rw-r--r-- | net/mac80211/rx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index 7c5d1b2ec453..01a3f2630eaf 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c | |||
@@ -2928,6 +2928,9 @@ void ieee80211_rx(struct ieee80211_hw *hw, struct sk_buff *skb) | |||
2928 | return; | 2928 | return; |
2929 | } | 2929 | } |
2930 | 2930 | ||
2931 | ieee80211_tpt_led_trig_rx(local, | ||
2932 | ((struct ieee80211_hdr *)skb->data)->frame_control, | ||
2933 | skb->len); | ||
2931 | __ieee80211_rx_handle_packet(hw, skb); | 2934 | __ieee80211_rx_handle_packet(hw, skb); |
2932 | 2935 | ||
2933 | rcu_read_unlock(); | 2936 | rcu_read_unlock(); |