| From c115759fb0b11ba3ce09d078e8609203dc5e772f Mon Sep 17 00:00:00 2001 |
| From: Bo Jiao <Bo.Jiao@mediatek.com> |
| Date: Fri, 10 Nov 2023 15:34:57 +0800 |
| Subject: [PATCH 41/61] mtk: mac80211: fix crash when starting tx ba session |
| |
| Signed-off-by: Bo Jiao <Bo.Jiao@mediatek.com> |
| --- |
| net/mac80211/agg-tx.c | 3 ++- |
| 1 file changed, 2 insertions(+), 1 deletion(-) |
| |
| diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c |
| index 7117576..da9b7f0 100644 |
| --- a/net/mac80211/agg-tx.c |
| +++ b/net/mac80211/agg-tx.c |
| @@ -642,7 +642,8 @@ int ieee80211_start_tx_ba_session(struct ieee80211_sta *pubsta, u16 tid, |
| "Requested to start BA session on reserved tid=%d", tid)) |
| return -EINVAL; |
| |
| - if (!pubsta->deflink.ht_cap.ht_supported && |
| + if (!sta->sdata->vif.active_links && |
| + !pubsta->deflink.ht_cap.ht_supported && |
| sta->sdata->vif.bss_conf.chanreq.oper.chan->band != NL80211_BAND_6GHZ) |
| return -EINVAL; |
| |
| -- |
| 2.39.2 |
| |