]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Invoke TX LED in more code paths
authorBjorn Andersson <bjorn.andersson@linaro.org>
Sat, 27 May 2017 21:59:27 +0000 (14:59 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 30 May 2017 07:18:13 +0000 (09:18 +0200)
commit8071e4a9a8925d26b67b51f34cd0eef0145b1202
treed64f23147517914f7b70f7dc0813c7a43e202f6f
parent2681f4ad2c045430cd8253ec222df12dbaa15a29
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>
net/mac80211/status.c