mac80211, mt76: add fixes for recently discovered security issues
[openwrt/staging/dedeckeh.git] / package / kernel / mt76 / patches / 100-api_update.patch
diff --git a/package/kernel/mt76/patches/100-api_update.patch b/package/kernel/mt76/patches/100-api_update.patch
new file mode 100644 (file)
index 0000000..3a76f11
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/tx.c
++++ b/tx.c
+@@ -330,7 +330,7 @@ mt76_tx(struct mt76_phy *phy, struct iee
+       if ((dev->drv->drv_flags & MT_DRV_HW_MGMT_TXQ) &&
+           !(info->flags & IEEE80211_TX_CTL_HW_80211_ENCAP) &&
+           !ieee80211_is_data(hdr->frame_control) &&
+-          !ieee80211_is_bufferable_mmpdu(hdr->frame_control)) {
++          !ieee80211_is_bufferable_mmpdu(skb)) {
+               qid = MT_TXQ_PSD;
+       }