mac80211: reduce packet loss event false positives
authorFelix Fietkau <nbd@nbd.name>
Sat, 8 Aug 2020 17:25:42 +0000 (19:25 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 27 Aug 2020 08:53:20 +0000 (10:53 +0200)
commit47df8e059b49a80c179fae39256bcd7096810934
tree50bd138007bf2bbca391917d2e33633ccb415d8f
parent47caf685a6854593348f216e0b489b71c10cbe03
mac80211: reduce packet loss event false positives

When running a large number of packets per second with a high data rate
and long A-MPDUs, the packet loss threshold can be reached very quickly
when the link conditions change. This frequently shows up as spurious
disconnects.
Mitigate false positives by using a similar logic for regular stations
as the one being used for TDLS, though with a more aggressive timeout.
Packet loss events are only reported if no ACK was received for a second.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20200808172542.41628-1-nbd@nbd.name
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.h
net/mac80211/status.c