summaryrefslogtreecommitdiffstats
path: root/net/mac80211/led.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-11-13 07:34:15 +0100
committerJohannes Berg <johannes.berg@intel.com>2021-11-15 10:56:57 +0100
commit30f6cf96912b638d0ddfc325204b598f94efddc2 (patch)
tree884fd9aa63d5eb9ddf5fc8552b7a9a6210e90294 /net/mac80211/led.h
parent6dd2360334f3cb3b45fc1b8194c670090474b87c (diff)
downloadlinux-30f6cf96912b638d0ddfc325204b598f94efddc2.tar.bz2
mac80211: fix throughput LED trigger
The codepaths for rx with decap offload and tx with itxq were not updating the counters for the throughput led trigger. Signed-off-by: Felix Fietkau <nbd@nbd.name> Link: https://lore.kernel.org/r/20211113063415.55147-1-nbd@nbd.name Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/led.h')
-rw-r--r--net/mac80211/led.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/mac80211/led.h b/net/mac80211/led.h
index fb3aaa3c5606..b71a1428d883 100644
--- a/net/mac80211/led.h
+++ b/net/mac80211/led.h
@@ -72,19 +72,19 @@ static inline void ieee80211_mod_tpt_led_trig(struct ieee80211_local *local,
#endif
static inline void
-ieee80211_tpt_led_trig_tx(struct ieee80211_local *local, __le16 fc, int bytes)
+ieee80211_tpt_led_trig_tx(struct ieee80211_local *local, int bytes)
{
#ifdef CONFIG_MAC80211_LEDS
- if (ieee80211_is_data(fc) && atomic_read(&local->tpt_led_active))
+ if (atomic_read(&local->tpt_led_active))
local->tpt_led_trigger->tx_bytes += bytes;
#endif
}
static inline void
-ieee80211_tpt_led_trig_rx(struct ieee80211_local *local, __le16 fc, int bytes)
+ieee80211_tpt_led_trig_rx(struct ieee80211_local *local, int bytes)
{
#ifdef CONFIG_MAC80211_LEDS
- if (ieee80211_is_data(fc) && atomic_read(&local->tpt_led_active))
+ if (atomic_read(&local->tpt_led_active))
local->tpt_led_trigger->rx_bytes += bytes;
#endif
}