cfg80211: update dfs_state_entered upon dfs_state change
authorMichal Kazior <michal.kazior@tieto.com>
Thu, 17 Oct 2013 18:21:12 +0000 (11:21 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 21 Oct 2013 12:50:27 +0000 (14:50 +0200)
The timestamp wasn't updated after transitioning
to the NL80211_DFS_USABLE state after NOP time.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/mlme.c

index edfe6de00e7bbc461a9e31b753531876c4f858cc..6a6b1c8e907df93e73b44a8912a3ae1fda5f80a5 100644 (file)
@@ -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);