wifi: mac80211: don't update rx_stats.last_rate for NDP
authorJohannes Berg <johannes.berg@intel.com>
Thu, 8 Jun 2023 13:36:05 +0000 (16:36 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 14 Jun 2023 10:20:08 +0000 (12:20 +0200)
commit0e966d9a35fa5a3967a4900654fa925b8fb8e71b
treeb1ca11a751a0e66cf1b20f540b1a4c67f6bd0be2
parent556f16b83459590a2d8d1394fd3af4d6d8ccabc7
wifi: mac80211: don't update rx_stats.last_rate for NDP

If we get an NDP (null data packet), there's reason to
believe the peer is just sending it to probe, and that
would happen at a low rate. Don't track this packet for
purposes of last RX rate reporting.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230608163202.8af46c4ac094.I13d9d5019addeaa4aff3c8a05f56c9f5a86b1ebd@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c