]> git.itanic.dy.fi Git - linux-stable/commit
wifi: mt76: fix reading current per-tid starting sequence number for aggregation
authorFelix Fietkau <nbd@nbd.name>
Fri, 26 Aug 2022 18:23:29 +0000 (20:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:10:27 +0000 (11:10 +0200)
commitbd5958ccfc451d3b61c7eb305fd53d9728791f79
tree7db4519ee2daf3bc2ac8dd089d315918015b07a1
parent85f9a2d51e72f558c9bbf94cd1ae7c73f80034de
wifi: mt76: fix reading current per-tid starting sequence number for aggregation

commit c3a510e2b53785df31d882a773c4c0780b4c825f upstream.

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

Cc: stable@vger.kernel.org
Fixes: a28bef561a5c ("mt76: mt7615: re-enable offloading of sequence number assignment")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220826182329.18155-1-nbd@nbd.name
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mediatek/mt76/mt7615/mac.c