]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: mt76: route nullfunc frames to PSD/ALTX queue
authorFelix Fietkau <nbd@nbd.name>
Mon, 9 Mar 2026 06:07:28 +0000 (06:07 +0000)
committerFelix Fietkau <nbd@nbd.name>
Tue, 24 Mar 2026 15:49:31 +0000 (15:49 +0000)
commit331e766e75d2a64b5c1f38aadfcfcf31d264f43e
tree68fd8a24c857cbde36fdd2f618532ca48cb78a0a
parent0dcef1cbae27d806cd29c296cc03ad6e8ece771d
wifi: mt76: route nullfunc frames to PSD/ALTX queue

ieee80211_is_data() returns true for nullfunc/QoS-nullfunc frames, so
they bypass the PSD queue routing and go through the regular VO data
queue. This means firmware processes them through the normal TID queue
instead of the ALTX queue, which doesn't guarantee immediate
transmission.

Use ieee80211_is_data_present() instead, which returns false for both
management frames and nullfunc/QoS-nullfunc (no payload), routing them
to MT_TXQ_PSD. Firmware maps PSD to the ALTX queue, which transmits
immediately without PS buffering.

This only affects frames from the mt76_tx() pending path. Regular
mac80211 TXQ scheduling is unchanged.

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