blob: aa1b7aee1e005d189c63f3c3989ce00425791626 [file] [log] [blame]
developer66e89bc2024-04-23 14:50:01 +08001From c115759fb0b11ba3ce09d078e8609203dc5e772f Mon Sep 17 00:00:00 2001
2From: Bo Jiao <Bo.Jiao@mediatek.com>
3Date: Fri, 10 Nov 2023 15:34:57 +0800
4Subject: [PATCH 41/61] mtk: mac80211: fix crash when starting tx ba session
5
6Signed-off-by: Bo Jiao <Bo.Jiao@mediatek.com>
developer66e89bc2024-04-23 14:50:01 +08007---
8 net/mac80211/agg-tx.c | 3 ++-
9 1 file changed, 2 insertions(+), 1 deletion(-)
10
11diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c
12index 7117576..da9b7f0 100644
13--- a/net/mac80211/agg-tx.c
14+++ b/net/mac80211/agg-tx.c
15@@ -642,7 +642,8 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid,
16 "Requested to start BA session on reserved tid=%d", tid))
17 return -EINVAL;
18
19- if (!pubsta->deflink.ht_cap.ht_supported &&
20+ if (!sta->sdata->vif.active_links &&
21+ !pubsta->deflink.ht_cap.ht_supported &&
22 sta->sdata->vif.bss_conf.chanreq.oper.chan->band != NL80211_BAND_6GHZ)
23 return -EINVAL;
24
25--
262.39.2
27