aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mt76/patches/110-api_update.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2023-03-29 17:54:19 +0200
committerFelix Fietkau <nbd@nbd.name>2023-03-30 12:24:52 +0200
commit32621086c3b0c641609580bdf83d4c731caa7f5e (patch)
tree1d8868d0660c8579147e761780eeff99e44297c1 /package/kernel/mt76/patches/110-api_update.patch
parent2541ca616da8357b766130ed2f40dfc2d9e31f1c (diff)
downloadupstream-32621086c3b0c641609580bdf83d4c731caa7f5e.tar.gz
upstream-32621086c3b0c641609580bdf83d4c731caa7f5e.tar.bz2
upstream-32621086c3b0c641609580bdf83d4c731caa7f5e.zip
mac80211, mt76: add fixes for recently discovered security issues
Fixes CVE-2022-47522 Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit d54c91bd9ab3c54ee06923eafbd67047816a37e4)
Diffstat (limited to 'package/kernel/mt76/patches/110-api_update.patch')
-rw-r--r--package/kernel/mt76/patches/110-api_update.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/kernel/mt76/patches/110-api_update.patch b/package/kernel/mt76/patches/110-api_update.patch
new file mode 100644
index 0000000000..a42277704e
--- /dev/null
+++ b/package/kernel/mt76/patches/110-api_update.patch
@@ -0,0 +1,11 @@
+--- a/tx.c
++++ b/tx.c
+@@ -326,7 +326,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;
+ skb_set_queue_mapping(skb, qid);
+ }