[RFC PATCH] nl80211: re-add interface into bridge on interface re-creation
Dominique Martinet
dominique.martinet at atmark-techno.com
Mon Jan 12 18:28:51 PST 2026
Hi,
Dominique Martinet wrote on Thu, Dec 18, 2025 at 05:20:59PM +0900:
> When using the nl80211 driver with a bridge, the driver properly detects
> when the interface is re-created ("nl80211: Update ifindex for a removed
> interface") and wpa_driver_nl80211_finish_drv_init() reinits it, but if
> the interface was part of a bridge nothing adds it back there.
>
> This adds the interface to the bridge in this function if the initial
> init setup a bridge in the first place:
> - the first time wpa_driver_nl80211_finish_drv_init() is called,
> i802_init() has not yet setup the bridge (i802_check_bridge()), so
> this flag is false and nothing changes
> - when the interface is re-added the flag is only set if
> i802_check_bridge() went to the end, which also ensures the bss->bridge
> variable is sensible.
Would it be possible to have any feedback on this?
I've been running with this patch on our devices and hell didn't break
loose, so if there is no comment I'll resend without RFC in a couple of
weeks.
Thanks,
--
Dominique Martinet
More information about the Hostap
mailing list