summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorJohannes Berg2012-08-01 20:54:52 +0200
committerJohannes Berg2012-08-01 20:58:28 +0200
commit2d9957cce674308f744f37f68b6bc3261bfdbbf4 (patch)
tree98b4c56366ddbe3af4475c1b119b285a0d837eb8 /net/mac80211/mlme.c
parentmac80211: don't clear sched_scan_sdata on sched scan stop request (diff)
downloadkernel-qcow2-linux-2d9957cce674308f744f37f68b6bc3261bfdbbf4.tar.gz
kernel-qcow2-linux-2d9957cce674308f744f37f68b6bc3261bfdbbf4.tar.xz
kernel-qcow2-linux-2d9957cce674308f744f37f68b6bc3261bfdbbf4.zip
mac80211: clear timer bits when disconnecting
There's a corner case that can happen when we suspend with a timer running, then resume and disconnect. If we connect again, suspend and resume we might start timers that shouldn't be running. Reset the timer flags to avoid this. This affects both mesh and managed modes. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index cef0c9e79aba..a4a5acdbaa4d 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1430,6 +1430,8 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,
del_timer_sync(&sdata->u.mgd.bcn_mon_timer);
del_timer_sync(&sdata->u.mgd.timer);
del_timer_sync(&sdata->u.mgd.chswitch_timer);
+
+ sdata->u.mgd.timers_running = 0;
}
void ieee80211_sta_rx_notify(struct ieee80211_sub_if_data *sdata,