diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2013-10-17 14:21:11 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-10-21 08:50:27 -0400 |
commit | c532a58b0fb4b2b3309e6b87bafb44f36808aa6f (patch) | |
tree | 7df77d9c526595b7bb13b5aebf0fe9f6a37a1b47 /net/wireless | |
parent | 79845c662eeb95c9a180b9bd0d3ad848ee65b94c (diff) |
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>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/mlme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c index 8d49c1ce3dea..edfe6de00e7b 100644 --- a/net/wireless/mlme.c +++ b/net/wireless/mlme.c | |||
@@ -707,8 +707,8 @@ void cfg80211_dfs_channels_update_work(struct work_struct *work) | |||
707 | if (c->dfs_state != NL80211_DFS_UNAVAILABLE) | 707 | if (c->dfs_state != NL80211_DFS_UNAVAILABLE) |
708 | continue; | 708 | continue; |
709 | 709 | ||
710 | timeout = c->dfs_state_entered + | 710 | timeout = c->dfs_state_entered + msecs_to_jiffies( |
711 | IEEE80211_DFS_MIN_NOP_TIME_MS; | 711 | IEEE80211_DFS_MIN_NOP_TIME_MS); |
712 | 712 | ||
713 | if (time_after_eq(jiffies, timeout)) { | 713 | if (time_after_eq(jiffies, timeout)) { |
714 | c->dfs_state = NL80211_DFS_USABLE; | 714 | c->dfs_state = NL80211_DFS_USABLE; |