summaryrefslogtreecommitdiffstats
path: root/net/wireless/mlme.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2013-11-05 15:49:16 -0500
committerJohn W. Linville <linville@tuxdriver.com>2013-11-05 15:49:16 -0500
commitb476d3f143e8b213273834e92615370ca65ff126 (patch)
tree0a3fee28a93f580a5474165dbdc3837d580310b6 /net/wireless/mlme.c
parent353c78152c10027b8da5de446bad3472f977fcdc (diff)
parentbbe09bbcf4454e826e3fb08e87d81f32c0030658 (diff)
downloadop-kernel-dev-b476d3f143e8b213273834e92615370ca65ff126.zip
op-kernel-dev-b476d3f143e8b213273834e92615370ca65ff126.tar.gz
Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
Diffstat (limited to 'net/wireless/mlme.c')
-rw-r--r--net/wireless/mlme.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c
index 8d49c1c..6a6b1c8 100644
--- a/net/wireless/mlme.c
+++ b/net/wireless/mlme.c
@@ -707,11 +707,13 @@ 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;
+ c->dfs_state_entered = jiffies;
+
cfg80211_chandef_create(&chandef, c,
NL80211_CHAN_NO_HT);
OpenPOWER on IntegriCloud