sctp: fix possible seqlock seadlock in sctp_packet_transmit()
[firefly-linux-kernel-4.4.55.git] / net / mac80211 / wme.c
index afba19cb6f87af534f67904b96c0efcd7f421896..a282fddf8b000e6f5beb11576e15857cbd9f8a88 100644 (file)
@@ -153,6 +153,11 @@ u16 ieee80211_select_queue(struct ieee80211_sub_if_data *sdata,
                return IEEE80211_AC_BE;
        }
 
+       if (skb->protocol == sdata->control_port_protocol) {
+               skb->priority = 7;
+               return ieee80211_downgrade_queue(sdata, skb);
+       }
+
        /* use the data classifier to determine what 802.1d tag the
         * data frame has */
        skb->priority = cfg80211_classify8021d(skb);