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)
commitaa3cb24be18b9b537750c354c5cff96c3d17ae44
tree421e89b28c091aff309d25db83b80d30c404f1e8
parent2170e2157d7c5398f84477935553d63a93a1f6b8
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