Skip to content

Commit

Permalink
wifi: mt76: mt7921: fix reporting of TX AGGR histogram
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
LorenzoBianconi authored and nbd168 committed Nov 11, 2022
1 parent 68bdccc commit 242fece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mt7921/mac.c
Expand Up @@ -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));
Expand Down

0 comments on commit 242fece

Please sign in to comment.