mt76: mt7915: add tx mu/su counters to mib
authorBen Greear <greearb@candelatech.com>
Wed, 4 Aug 2021 13:43:32 +0000 (06:43 -0700)
committerFelix Fietkau <nbd@nbd.name>
Wed, 20 Oct 2021 08:36:44 +0000 (10:36 +0200)
commit016f2040591f97ebb093d205f90fc02032f775c0
tree1d717eea0e50707ef7467369caece29ca0afca8f
parentbc529ee3a7b89419e039a36acdeec99634eee4af
mt76: mt7915: add tx mu/su counters to mib

These counters are clear-on-read, so we need to accumulate
them in the update_stats poll logic, and read the accumulated
values instead of directly doing register reads when reporting
to debugfs and ethtool stats.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c
drivers/net/wireless/mediatek/mt76/mt7915/mac.c
drivers/net/wireless/mediatek/mt76/mt7915/main.c
drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h