Skip to content

Commit 4f267c1

Browse files
dziedjanjmberg-intel
authored andcommitted
cfg80211: reg: set DFS CAC time in case of custom regd
Set DFS CAC time also in case of using custom and strict regulatory from drivers. In other case we could have unset DFS CAC time directly after driver loaded and before issue regulatory set from user mode. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent c14a740 commit 4f267c1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎net/wireless/reg.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,13 @@ static void handle_channel(struct wiphy *wiphy,
10961096
(int) MBI_TO_DBI(power_rule->max_antenna_gain);
10971097
chan->max_reg_power = chan->max_power = chan->orig_mpwr =
10981098
(int) MBM_TO_DBM(power_rule->max_eirp);
1099+
1100+
if (chan->flags & IEEE80211_CHAN_RADAR) {
1101+
chan->dfs_cac_ms = IEEE80211_DFS_MIN_CAC_TIME_MS;
1102+
if (reg_rule->dfs_cac_ms)
1103+
chan->dfs_cac_ms = reg_rule->dfs_cac_ms;
1104+
}
1105+
10991106
return;
11001107
}
11011108

0 commit comments

Comments
 (0)