mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
cfg80211: fix DFS channel recovery timeout
The timeout was not properly converted from msecs to jiffies. As a result channel transition to NL80211_DFS_USABLE was delayed depending on CONFIG_HZ configuration, e.g. HZ=100 would delay the NOP from 30 minutes to 300 minutes. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
79845c662e
commit
c532a58b0f
1 changed files with 2 additions and 2 deletions
|
@ -707,8 +707,8 @@ void cfg80211_dfs_channels_update_work(struct work_struct *work)
|
|||
if (c->dfs_state != NL80211_DFS_UNAVAILABLE)
|
||||
continue;
|
||||
|
||||
timeout = c->dfs_state_entered +
|
||||
IEEE80211_DFS_MIN_NOP_TIME_MS;
|
||||
timeout = c->dfs_state_entered + msecs_to_jiffies(
|
||||
IEEE80211_DFS_MIN_NOP_TIME_MS);
|
||||
|
||||
if (time_after_eq(jiffies, timeout)) {
|
||||
c->dfs_state = NL80211_DFS_USABLE;
|
||||
|
|
Loading…
Reference in a new issue