mac80211: reduce packet loss event false positives
authorFelix Fietkau <nbd@nbd.name>
Sat, 8 Aug 2020 17:25:42 +0000 (19:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2020 11:55:34 +0000 (13:55 +0200)
commit3a8fcf73cbf1027813828f29b24d8858f31a9755
tree14305c759012e49e583cd3beef44f22a73a8aef9
parent55de6d85df5de6ff6d2d79937aa7694772a110aa
mac80211: reduce packet loss event false positives

[ Upstream commit 47df8e059b49a80c179fae39256bcd7096810934 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/sta_info.h
net/mac80211/status.c