summaryrefslogtreecommitdiff
path: root/net/mac80211/mesh.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-08-01 18:54:52 (GMT)
committerJohannes Berg <johannes.berg@intel.com>2012-08-01 18:58:28 (GMT)
commit2d9957cce674308f744f37f68b6bc3261bfdbbf4 (patch)
tree98b4c56366ddbe3af4475c1b119b285a0d837eb8 /net/mac80211/mesh.c
parentba846a502c6b3c0ff047861c891fd1afeed6e435 (diff)
downloadlinux-fsl-qoriq-2d9957cce674308f744f37f68b6bc3261bfdbbf4.tar.xz
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/mesh.c')
-rw-r--r--net/mac80211/mesh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c
index 6fac18c..d60b3d3 100644
--- a/net/mac80211/mesh.c
+++ b/net/mac80211/mesh.c
@@ -634,6 +634,8 @@ void ieee80211_stop_mesh(struct ieee80211_sub_if_data *sdata)
local->fif_other_bss--;
atomic_dec(&local->iff_allmultis);
ieee80211_configure_filter(local);
+
+ sdata->u.mesh.timers_running = 0;
}
static void ieee80211_mesh_rx_bcn_presp(struct ieee80211_sub_if_data *sdata,