From: Arik Nemtsov Date: Tue, 3 May 2011 08:53:07 +0000 (+0300) Subject: mac80211: set TID of internal mgmt packets to 7 X-Git-Tag: Ubuntu-5.13.0-19.19~27163^2~16^2~181 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=4c468fe559f7910b1c6b10d3d223943fdd1b653c;p=mirror_ubuntu-jammy-kernel.git mac80211: set TID of internal mgmt packets to 7 The queue mapping of internal mgmt packets is set to VO. Set the TID value to match the queue mapping. Otherwise drivers that only look at the TID might get confused. Signed-off-by: Arik Nemtsov Signed-off-by: John W. Linville --- diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index e3e3aa173af0..e1a39ed1ef5e 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -2534,8 +2534,9 @@ void ieee80211_tx_skb(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb) skb_set_network_header(skb, 0); skb_set_transport_header(skb, 0); - /* send all internal mgmt frames on VO */ - skb_set_queue_mapping(skb, 0); + /* Send all internal mgmt frames on VO. Accordingly set TID to 7. */ + skb_set_queue_mapping(skb, IEEE80211_AC_VO); + skb->priority = 7; /* * The other path calling ieee80211_xmit is from the tasklet,