]> Pileus Git - ~andy/linux/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)
commit0d466b9c6798d431141ab15ae6d5ea413b4d09b2
tree3c0cc8f43ac8a307bb08d746de8c26bdbda5610a
parent19c3b8303d4686aa373c669ee833609b3fb403cc
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