Skip to content

Commit

Permalink
wifi: mt76: fix reading current per-tid starting sequence number for …
Browse files Browse the repository at this point in the history
…aggregation

The code was accidentally shifting register values down by tid % 32 instead of
(tid * field_size) % 32.

Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 committed Aug 26, 2022
1 parent 13bedd6 commit 5ec78e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mt7615/mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ u32 mt7615_mac_get_sta_tid_sn(struct mt7615_dev *dev, int wcid, u8 tid)
offset %= 32;

val = mt76_rr(dev, addr);
val >>= (tid % 32);
val >>= offset;

if (offset > 20) {
addr += 4;
Expand Down

0 comments on commit 5ec78e1

Please sign in to comment.