]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt7603: fix sequence number assignment
authorFelix Fietkau <nbd@nbd.name>
Tue, 26 Mar 2019 08:34:20 +0000 (09:34 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 12 Apr 2019 18:28:26 +0000 (21:28 +0300)
commit17317fcbac89eef9f6a6ad301bae379b370eb72b
tree421e89b28c091aff309d25db83b80d30c404f1e8
parent3af8cceb466dd47815efc19760b754e6056fcbf4
mt76: mt7603: fix sequence number assignment

If the MT_TXD3_SN_VALID flag is not set in the tx descriptor, the hardware
assigns the sequence number. However, the rest of the code assumes that the
sequence number specified in the 802.11 header gets transmitted.
This was causing issues with the aggregation setup, which worked for the
initial one (where the sequence numbers were still close), but not for
further teardown/re-establishing of sessions.

Additionally, the overwrite of the TID sequence number in WTBL2 was resetting
the hardware assigned sequence numbers, causing them to drift further apart.

Fix this by using the software assigned sequence numbers

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mt7603/mac.c
drivers/net/wireless/mediatek/mt76/mt7603/main.c
drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h