mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-01 16:58:22 +00:00
4ae854d055
Fixes CVE-2022-47522 Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit d54c91bd9ab3c54ee06923eafbd67047816a37e4)
12 lines
373 B
Diff
12 lines
373 B
Diff
--- a/tx.c
|
|
+++ b/tx.c
|
|
@@ -325,7 +325,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;
|
|
}
|
|
|