wifi: mt76: fix tx packet loss when scanning on DBDC
authorFelix Fietkau <nbd@nbd.name>
Fri, 15 Mar 2024 09:16:28 +0000 (10:16 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 2 May 2024 10:44:50 +0000 (12:44 +0200)
commit5d581c33230065b07887a40dab8d29c63a8c6e7e
tree255dee4218a62b40c9513cdc861ee7a21d783ec8
parent7f819a2f4fbc510e088b49c79addcf1734503578
wifi: mt76: fix tx packet loss when scanning on DBDC

When queueing packets, only the MT76_RESET flag of the primary PHY
is checked. If the primary PHY is scanning or changing channels, this can
lead to packet loss for tx on the second PHY.
Fix this by passing the phy to the .tx_queue_skb op and using it to check
the correct flag.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/dma.c
drivers/net/wireless/mediatek/mt76/mt76.h
drivers/net/wireless/mediatek/mt76/sdio.c
drivers/net/wireless/mediatek/mt76/testmode.c
drivers/net/wireless/mediatek/mt76/tx.c
drivers/net/wireless/mediatek/mt76/usb.c