mac80211: Set priority and queue mapping for injected frames
authorJohan Almbladh <johan.almbladh@anyfinetworks.com>
Thu, 1 Apr 2021 16:44:55 +0000 (18:44 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Apr 2021 13:32:04 +0000 (15:32 +0200)
commit96a7109a16665255b65d021e24141c2edae0e202
tree29e89a6da10be157a000e205a3ebdb38c6c34252
parent55f8205e7dddb2151def733cefbbf63deba9e1a5
mac80211: Set priority and queue mapping for injected frames

Some drivers, for example mt76, use the skb priority field, and
expects that to be consistent with the skb queue mapping. On some
frame injection code paths that was not true, and it broke frame
injection. Now the skb queue mapping is set according to the skb
priority value when the frame is injected. The skb priority value
is also derived from the frame data for all frame types, as it
was done prior to commit dbd50a851c50 (only allocate one queue
when using iTXQs). Fixes frame injection with the mt76 driver on
MT7610E chipset.

Signed-off-by: Johan Almbladh <johan.almbladh@anyfinetworks.com>
Link: https://lore.kernel.org/r/20210401164455.978245-1-johan.almbladh@anyfinetworks.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c