]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: improve cleanup when leaving mesh
authorThomas Pedersen <thomas@cozybit.com>
Fri, 3 Aug 2012 19:21:32 +0000 (12:21 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 3 Aug 2012 19:34:17 +0000 (21:34 +0200)
commit2f6dd6fec93cd46fd3ab1a21dfbb89abb669de2a
tree3c0cc8f43ac8a307bb08d746de8c26bdbda5610a
parent1a10a46196fa4d9753556246a052e93e11189404
mac80211: improve cleanup when leaving mesh

It is not necessary to stop the mesh beacon in the mac80211 ndo_stop
handler, since cfg80211 has already left the mesh on NETDEV_GOING_DOWN
notification.

Also some improvements to ieee80211_stop_mesh():

 - flush mpath entries.
 - flush sta entries per-sdata so we don't remove entries belonging to
   other vifs on the same hw.

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