blob: d79d92922ed94f03b9120ac52971fc5060175629 [file] [log] [blame]
developerdad89a32024-04-29 14:17:17 +08001From f5a7e57bca203a7d063faf0b9b54b4da8c42f884 Mon Sep 17 00:00:00 2001
developer66e89bc2024-04-23 14:50:01 +08002From: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
3Date: Thu, 1 Feb 2024 17:46:49 +0800
4Subject: [PATCH 47/61] mtk: mac80211: fix radar required of link issue in
5 reserve_reassign and reserve_assign
6
7link->radar_required is not updated in
8ieee80211_link_use_reserved_assign & ieee80211_link_use_reserved_reassign
9This will lead to DFS RDD init incomplete (RDD_CAC_START, RDD_CAC_END &
10RDD_DET_MODE is not set to fw)
11
developer66e89bc2024-04-23 14:50:01 +080012Signed-off-by: StanleyYP Wang <StanleyYP.Wang@mediatek.com>
developer66e89bc2024-04-23 14:50:01 +080013---
14 net/mac80211/chan.c | 2 ++
15 1 file changed, 2 insertions(+)
16
17diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c
18index 8043d1d..ac22524 100644
19--- a/net/mac80211/chan.c
20+++ b/net/mac80211/chan.c
21@@ -1207,6 +1207,7 @@ ieee80211_link_use_reserved_reassign(struct ieee80211_link_data *link)
22 if (link_conf->chanreq.oper.width != link->reserved.oper.width)
23 changed = BSS_CHANGED_BANDWIDTH;
24
25+ link->radar_required = link->reserved_radar_required;
26 ieee80211_link_update_chanreq(link, &link->reserved);
27
28 _ieee80211_change_chanctx(local, new_ctx, old_ctx, chanreq, link);
29@@ -1290,6 +1291,7 @@ ieee80211_link_use_reserved_assign(struct ieee80211_link_data *link)
30 list_del(&link->reserved_chanctx_list);
31 link->reserved_chanctx = NULL;
32
33+ link->radar_required = link->reserved_radar_required;
34 err = ieee80211_assign_link_chanctx(link, new_ctx);
35 if (err) {
36 if (ieee80211_chanctx_refcount(local, new_ctx) == 0)
37--
developerdad89a32024-04-29 14:17:17 +0800382.18.0
developer66e89bc2024-04-23 14:50:01 +080039