Re: [PATCH] wifi: mac80211: mesh: free pending CSA settings on interface stop
From: Deepanshu Kartikey
Date: Mon Aug 24 2026 - 21:22:00 EST
On Mon, Aug 24, 2026 at 9:57 PM Nicolas Escande <nico.escande@xxxxxxxxx> wrote:
>
> Why not really handling it like the beacon data and just remove the if ?
>
> csa = sdata_dereference(ifmsh->csa, sdata);
> RCU_INIT_POINTER(ifmsh->csa, NULL);
> kfree_rcu(csa, rcu_head);
>
> Should do the same:
> - RCU_INIT_POINTER() will not take too much time
> - kfree_rcu() already does a null check
>
> > /* free all potentially still buffered group-addressed frames */
> > local->total_ps_buffered -= skb_queue_len(&ifmsh->ps.bc_buf);
> > skb_queue_purge(&ifmsh->ps.bc_buf);
>
> Thanks
I will send patch v2.
Thanks
Deepanshu