Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/mt76.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2022-11-02 15:46:50 +0300
committerFelix Fietkau <nbd@nbd.name>2022-11-11 13:38:25 +0300
commit242fece4323f36e00c454d971fdd6298c1d11679 (patch)
tree59c9892fd758337a28ece20f45ff3493a955a41b
parent68bdcccb0aa751a0dac89b0dd43e65a1f9d2763f (diff)
wifi: mt76: mt7921: fix reporting of TX AGGR histogram
Similar to mt7915, fix stats clash between bins [4-7] in 802.11 tx aggregation histogram. Fixes: 163f4d22c118d ("mt76: mt7921: add MAC support") Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--mt7921/mac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mt7921/mac.c b/mt7921/mac.c
index 1abf7d9b..f6725c31 100644
--- a/mt7921/mac.c
+++ b/mt7921/mac.c
@@ -984,7 +984,7 @@ void mt7921_mac_update_mib_stats(struct mt7921_phy *phy)
mib->tx_amsdu_cnt += val;
}
- for (i = 0, aggr1 = aggr0 + 4; i < 4; i++) {
+ for (i = 0, aggr1 = aggr0 + 8; i < 4; i++) {
u32 val2;
val = mt76_rr(dev, MT_TX_AGG_CNT(0, i));