• Felix Fietkau's avatar
    mt76: mt7603: fix sequence number assignment · aa3cb24b
    Felix Fietkau authored
    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: default avatarFelix Fietkau <nbd@nbd.name>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    aa3cb24b
main.c 18.1 KB