From: Michal Kazior Date: Thu, 17 Oct 2013 18:21:12 +0000 (-0700) Subject: cfg80211: update dfs_state_entered upon dfs_state change X-Git-Tag: v3.13-rc1~105^2~23^2^2~5^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bbe09bbcf4454e826e3fb08e87d81f32c0030658;p=kernel%2Fkernel-generic.git cfg80211: update dfs_state_entered upon dfs_state change The timestamp wasn't updated after transitioning to the NL80211_DFS_USABLE state after NOP time. Signed-off-by: Michal Kazior Signed-off-by: Johannes Berg --- diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c index edfe6de..6a6b1c8 100644 --- a/net/wireless/mlme.c +++ b/net/wireless/mlme.c @@ -712,6 +712,8 @@ void cfg80211_dfs_channels_update_work(struct work_struct *work) 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);