mac80211: fix a mistake check for rx_stats update
authorWen Gong <wgong@codeaurora.org>
Wed, 9 Dec 2020 03:06:29 +0000 (11:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:50 +0000 (11:53 +0100)
commit7fcf1c13802f26628d1a276f750fd1a9c7e08382
tree1c44dda7d137b19d156de81642e3020e08ee8540
parent1a889bda7d7c456a4e857ad17f71e39e5dc5c78e
mac80211: fix a mistake check for rx_stats update

[ Upstream commit f879ac8ed6c83ce05fcb53815a8ea83c5b6099a1 ]

It should be !is_multicast_ether_addr() in ieee80211_rx_h_sta_process()
for the rx_stats update, below commit remove the !, this patch is to
change it back.

It lead the rx rate "iw wlan0 station dump" become invalid for some
scenario when IEEE80211_HW_USES_RSS is set.

Fixes: 09a740ce352e ("mac80211: receive and process S1G beacons")
Signed-off-by: Wen Gong <wgong@codeaurora.org>
Link: https://lore.kernel.org/r/1607483189-3891-1-git-send-email-wgong@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/rx.c