diff options
author | Fabio Baltieri <fabio.baltieri@gmail.com> | 2013-07-25 06:00:26 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-08-01 04:48:49 -0400 |
commit | e47f2509e5f182f4df144406de6f2bc78179d57e (patch) | |
tree | a5adb4abee88bce7156d40a627ed47b3b7e1c3a2 /net/mac80211/tx.c | |
parent | c82b5a74cc739385db6e4275fe504a0e9469bf01 (diff) |
mac80211: use oneshot blink API for LED triggers
Change mac80211 LED trigger code to use the generic
led_trigger_blink_oneshot() API for transmit and receive activity
indication.
This gives a better feedback to the user, as with the new API each
activity event results in a visible blink, while a constant traffic
results in a continuous blink at constant rate.
Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
[fix LED disabled build error]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index be4d3caf4879..f65873f0c89f 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -1300,7 +1300,6 @@ static bool __ieee80211_tx(struct ieee80211_local *local, | |||
1300 | txpending); | 1300 | txpending); |
1301 | 1301 | ||
1302 | ieee80211_tpt_led_trig_tx(local, fc, led_len); | 1302 | ieee80211_tpt_led_trig_tx(local, fc, led_len); |
1303 | ieee80211_led_tx(local, 1); | ||
1304 | 1303 | ||
1305 | WARN_ON_ONCE(!skb_queue_empty(skbs)); | 1304 | WARN_ON_ONCE(!skb_queue_empty(skbs)); |
1306 | 1305 | ||