diff options
Diffstat (limited to 'net/wireless/mlme.c')
-rw-r--r-- | net/wireless/mlme.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c index 8d49c1ce3dea..6a6b1c8e907d 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) | |||
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; |
715 | c->dfs_state_entered = jiffies; | ||
716 | |||
715 | cfg80211_chandef_create(&chandef, c, | 717 | cfg80211_chandef_create(&chandef, c, |
716 | NL80211_CHAN_NO_HT); | 718 | NL80211_CHAN_NO_HT); |
717 | 719 | ||