]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
wifi: mt76: mt7921: fix reporting of TX AGGR histogram
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 2 Nov 2022 12:46:50 +0000 (13:46 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 1 Dec 2022 16:29:13 +0000 (17:29 +0100)
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>
drivers/net/wireless/mediatek/mt76/mt7921/mac.c

index 6860468ed191881c2679bff8e9fd10b547ef4348..1c0d8cf19b8eba223b6154190e37ce074bb3bf05 100644 (file)
@@ -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));