wlan-ap-Telecominfraproject/feeds/ipq95xx/mac80211/patches/qca/061-mac80211-process-addba-req-during-invalid-ext-element.patch
John Crispin b9b03a6e38 ipq95xx: add Qualcomm wifi-7 support
Signed-off-by: John Crispin <john@phrozen.org>
2023-04-10 14:25:48 +02:00

12 lines
460 B
Diff

--- a/net/mac80211/agg-rx.c
+++ b/net/mac80211/agg-rx.c
@@ -494,7 +494,7 @@ void ieee80211_process_addba_request(str
ies_len = len - offsetof(struct ieee80211_mgmt,
u.action.u.addba_req.variable);
- if (ies_len) {
+ if (ies_len && (mgmt->u.action.u.addba_req.variable[0] == WLAN_EID_ADDBA_EXT)) {
elems = ieee802_11_parse_elems(mgmt->u.action.u.addba_req.variable,
ies_len, true, mgmt->bssid, NULL);
if (!elems || elems->parse_error)