Search Linux Wireless

Re: [PATCH] mac80211: improve cleanup when leaving mesh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

johannes

--
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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux