Skip to content

Commit 528d13e

Browse files
LorenzoBianconinbd168
authored andcommitted
wifi: mt76: mt7915: fix reporting of TX AGGR histogram
Fix stats clash between bins [4-7] in 802.11 tx aggregation histogram. Fixes: e57b790 ("mt76: add mac80211 driver for MT7915 PCIe-based chipsets") Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
1 parent e34235c commit 528d13e

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7915

1 file changed

+1
-1
lines changed

drivers/net/wireless/mediatek/mt76/mt7915/mac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1641,7 +1641,7 @@ void mt7915_mac_update_stats(struct mt7915_phy *phy)
16411641

16421642
aggr0 = phy->band_idx ? ARRAY_SIZE(dev->mt76.aggr_stats) / 2 : 0;
16431643
if (is_mt7915(&dev->mt76)) {
1644-
for (i = 0, aggr1 = aggr0 + 4; i < 4; i++) {
1644+
for (i = 0, aggr1 = aggr0 + 8; i < 4; i++) {
16451645
val = mt76_rr(dev, MT_MIB_MB_SDR1(phy->band_idx, (i << 4)));
16461646
mib->ba_miss_cnt +=
16471647
FIELD_GET(MT_MIB_BA_MISS_COUNT_MASK, val);

0 commit comments

Comments
 (0)