diff --git a/mt7996/mac.c b/mt7996/mac.c index 91b65a02..9112abcd 100644 --- a/mt7996/mac.c +++ b/mt7996/mac.c @@ -764,6 +764,7 @@ mt7996_mac_write_txwi_80211(struct mt7996_dev *dev, __le32 *txwi, u32 val; if (ieee80211_is_action(fc) && + skb->len >= IEEE80211_MIN_ACTION_SIZE + 1 && mgmt->u.action.category == WLAN_CATEGORY_BACK && mgmt->u.action.u.addba_req.action_code == WLAN_ACTION_ADDBA_REQ) { if (is_mt7990(&dev->mt76))