On Wed, Aug 1, 2012 at 11:32 PM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > On Wed, 2012-08-01 at 14:15 -0700, Thomas Pedersen wrote: >> A couple improvements to cleanup when stopping a 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@xxxxxxxxxxx> >> --- >> net/mac80211/mesh.c | 3 ++- >> 1 files changed, 2 insertions(+), 1 deletions(-) >> >> diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c >> index 764593d..21c02c6 100644 >> --- a/net/mac80211/mesh.c >> +++ b/net/mac80211/mesh.c >> @@ -618,7 +618,8 @@ void ieee80211_stop_mesh(struct ieee80211_sub_if_data *sdata) >> >> ifmsh->mesh_id_len = 0; >> ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_BEACON_ENABLED); >> - sta_info_flush(local, NULL); >> + sta_info_flush(local, sdata); >> + mesh_path_flush_by_iface(sdata); > > We can remove ieee80211_clean_sdata() then, right? Yes, looks like any mesh cleanup can happen in the netdev ops. Thanks! Thomas -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html