diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2017-05-27 14:59:27 -0700 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2017-05-30 09:18:13 +0200 |
commit | 5d473fedd17ae3a9f92fb35551e307d01459ea6a (patch) | |
tree | d64f23147517914f7b70f7dc0813c7a43e202f6f /net/mac80211 | |
parent | e45a79da863c199d7c47b1ee6d33cee23c89eac1 (diff) | |
download | op-kernel-dev-5d473fedd17ae3a9f92fb35551e307d01459ea6a.zip op-kernel-dev-5d473fedd17ae3a9f92fb35551e307d01459ea6a.tar.gz |
mac80211: Invoke TX LED in more code paths
ieee80211_tx_status() is only one of the possible ways a driver can
report a handled packet, some drivers call this for every packet while
others calls it rarely or never.
In order to invoke the TX LED in the non-status reporting cases this
patch pushes the call to ieee80211_led_tx() into
ieee80211_report_used_skb(), which is shared between the various code
paths.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/status.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/status.c b/net/mac80211/status.c index be47ac5..a9fa6ee 100644 --- a/net/mac80211/status.c +++ b/net/mac80211/status.c @@ -546,6 +546,8 @@ static void ieee80211_report_used_skb(struct ieee80211_local *local, skb->wifi_acked_valid = 1; skb->wifi_acked = acked; } + + ieee80211_led_tx(local); } /* @@ -823,8 +825,6 @@ static void __ieee80211_tx_status(struct ieee80211_hw *hw, } } - ieee80211_led_tx(local); - /* SNMP counters * Fragments are passed to low-level drivers as separate skbs, so these * are actually fragments, not frames. Update frame counters only for |