summaryrefslogtreecommitdiffstats
path: root/net/mac80211/status.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2020-09-08 14:36:56 +0200
committerJohannes Berg <johannes.berg@intel.com>2020-09-18 12:19:04 +0200
commit9abf4e49830d606f18a05111cfa96b8f0b724c7d (patch)
tree255de87f6e6f169d02efb2513527a4dc887f4dec /net/mac80211/status.c
parent1ff4e8f2dec8b145b451f05320e4f9e01d254ae2 (diff)
downloadlinux-9abf4e49830d606f18a05111cfa96b8f0b724c7d.tar.bz2
mac80211: optimize station connection monitor
Calling mod_timer for every rx/tx packet can be quite expensive. Instead of constantly updating the timer, we can simply let it run out and check the timestamp of the last ACK or rx packet to re-arm it. Signed-off-by: Felix Fietkau <nbd@nbd.name> Link: https://lore.kernel.org/r/20200908123702.88454-9-nbd@nbd.name Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/status.c')
-rw-r--r--net/mac80211/status.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/mac80211/status.c b/net/mac80211/status.c
index c5e3ed19ee14..f868f90c913e 100644
--- a/net/mac80211/status.c
+++ b/net/mac80211/status.c
@@ -1218,9 +1218,6 @@ void ieee80211_tx_status_8023(struct ieee80211_hw *hw,
sta->status_stats.retry_count += retry_count;
if (ieee80211_hw_check(hw, REPORTS_TX_ACK_STATUS)) {
- if (acked && vif->type == NL80211_IFTYPE_STATION)
- ieee80211_sta_reset_conn_monitor(sdata);
-
sta->status_stats.last_ack = jiffies;
if (info->flags & IEEE80211_TX_STAT_ACK) {
if (sta->status_stats.lost_packets)