]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mt76: mt7615: fix mib stats counter reporting to mac80211
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 23 Feb 2021 10:42:49 +0000 (11:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 08:50:07 +0000 (10:50 +0200)
commit633d88d1fddb819f562b22b3810ef01162fbeb53
tree52f2e811cd029805df702ab7393a08125aee69be
parente8977610dfa0b804d17e090f45c1144cfd567941
mt76: mt7615: fix mib stats counter reporting to mac80211

[ Upstream commit 2eb6f6c437745bce46bd7a8f3a22a732d5b9becb ]

In order to properly report MIB counters to mac80211, resets stats in
mt7615_get_stats routine and hold mt76 mutex accessing MIB counters.
Sum up MIB counters in mt7615_mac_update_mib_stats routine.

Fixes: c388d8584bc83 ("mt76: mt7615: add a get_stats() callback")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt7615/mac.c
drivers/net/wireless/mediatek/mt76/mt7615/main.c
drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h