Skip to content

Commit c3a510e

Browse files
nbd168Kalle Valo
authored and
Kalle Valo
committed
wifi: mt76: fix reading current per-tid starting sequence number for aggregation
The code was accidentally shifting register values down by tid % 32 instead of (tid * field_size) % 32. Cc: [email protected] Fixes: a28bef5 ("mt76: mt7615: re-enable offloading of sequence number assignment") Signed-off-by: Felix Fietkau <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8997f5c commit c3a510e

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ u32 mt7615_mac_get_sta_tid_sn(struct mt7615_dev *dev, int wcid, u8 tid)
10881088
offset %= 32;
10891089

10901090
val = mt76_rr(dev, addr);
1091-
val >>= (tid % 32);
1091+
val >>= offset;
10921092

10931093
if (offset > 20) {
10941094
addr += 4;

0 commit comments

Comments
 (0)