developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 1 | From c115759fb0b11ba3ce09d078e8609203dc5e772f Mon Sep 17 00:00:00 2001 |
| 2 | From: Bo Jiao <Bo.Jiao@mediatek.com> |
| 3 | Date: Fri, 10 Nov 2023 15:34:57 +0800 |
| 4 | Subject: [PATCH 41/61] mtk: mac80211: fix crash when starting tx ba session |
| 5 | |
| 6 | Signed-off-by: Bo Jiao <Bo.Jiao@mediatek.com> |
developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 7 | --- |
| 8 | net/mac80211/agg-tx.c | 3 ++- |
| 9 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 10 | |
| 11 | diff --git a/net/mac80211/agg-tx.c b/net/mac80211/agg-tx.c |
| 12 | index 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 | -- |
| 26 | 2.39.2 |
| 27 | |