[PATCH] nl80211: re-add interface into bridge on interface re-creation

Jouni Malinen j at w1.fi
Mon Feb 9 12:18:59 PST 2026


On Mon, Feb 09, 2026 at 09:20:16AM +0900, Dominique Martinet wrote:
> 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.

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list