]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: mt76: use altx queue for offchannel tx on connac+
authorFelix Fietkau <nbd@nbd.name>
Mon, 15 Sep 2025 07:59:04 +0000 (09:59 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 15 Sep 2025 11:23:01 +0000 (13:23 +0200)
This ensures that packets are sent out immediately and are not held by
firmware internal buffering.

Link: https://patch.msgid.link/20250915075910.47558-9-nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/tx.c

index 8ab5840fee57f990e251abdcf82dad1adfc090f7..b78ae6a34b658b9e309590d2edcb98a41df49b66 100644 (file)
@@ -618,7 +618,8 @@ mt76_txq_schedule_pending_wcid(struct mt76_phy *phy, struct mt76_wcid *wcid,
                    !(info->flags & IEEE80211_TX_CTL_HW_80211_ENCAP) &&
                    !ieee80211_is_data(hdr->frame_control) &&
                    (!ieee80211_is_bufferable_mmpdu(skb) ||
-                    ieee80211_is_deauth(hdr->frame_control)))
+                    ieee80211_is_deauth(hdr->frame_control) ||
+                    head == &wcid->tx_offchannel))
                        qid = MT_TXQ_PSD;
 
                q = phy->q_tx[qid];