]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix mesh sta teardown
authorThomas Pedersen <thomas@cozybit.com>
Wed, 6 Feb 2013 18:17:21 +0000 (10:17 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Feb 2013 17:44:54 +0000 (18:44 +0100)
commit0af05d22503fe00a1d0d3a1ca9c00499012c44f4
tree126650c535a6d88fcace074d9f4987abbb1f9762
parentcc31bf4c755048286f29696afd0a2cc4673363f1
mac80211: fix mesh sta teardown

The patch "mac80211: clean up mesh sta allocation warning"
moved some mesh initialization into a path which is only
called when the kernel handles peering. This causes a hang
when mac80211 tries to clean up a userspace-allocated
station entry and delete a timer which has never been
initialized.

To avoid this, only do any mesh sta peering teardown if
the kernel is actually handling it.

The same is true when quiescing before suspend.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh.c
net/mac80211/mesh.h
net/mac80211/mesh_plink.c
net/mac80211/sta_info.c