]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - net/mac80211/mesh_plink.c
mac80211: mesh_plink: don't ignore holding timer
authorBob Copeland <me@bobcopeland.com>
Tue, 5 Nov 2013 19:16:56 +0000 (11:16 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Nov 2013 19:50:07 +0000 (20:50 +0100)
commit272a9e2614bf3b93f47f95ef9507d4ceec6bec27
tree569917ada9f32be24e0656b1f6462c8c71876182
parent58506eba784a0944e4c92876b18aacbaad178be3
mac80211: mesh_plink: don't ignore holding timer

The ignore_plink_timer flag is set when doing mod_timer() if
the timer was not previously active.  This is to avoid executing
the timeout if del_timer() was subsequently called.  However,
del_timer() only happens if we are moving to ESTAB state or
get a close frame while in HOLDING.

We cannot leave HOLDING and re-enter ESTAB unless we receive a
close frame (in which case ignore_plink_timer is already set) or
if the timeout expires, so there actually isn't a case where
this is needed on mod_timer().

Signed-off-by: Bob Copeland <bob@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_plink.c