kernel/mac80211: backport bcma changes from 4.1
[oweals/openwrt.git] / package / kernel / mac80211 / patches / 321-mac80211-add-an-intermediate-software-queue-implemen.patch
index ce5d4dcc3eb6b181d3733a6201a79b27051da3b1..a9e95fff6e81dd7cc45dfb89bb1514edc30ff5b6 100644 (file)
@@ -384,7 +384,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org>
 +      if (pubsta) {
 +              u8 tid = skb->priority & IEEE80211_QOS_CTL_TID_MASK;
 +              pubtxq = pubsta->txq[tid];
-+      } else {
++      } else if (vif) {
 +              pubtxq = vif->txq;
 +      }
 +