[PATCH] dbus: Do not bring down the primary interface when remove the wpa_supplicant created virtual AP interface
Jouni Malinen
j at w1.fi
Sun Dec 18 02:54:46 PST 2022
On Tue, Dec 06, 2022 at 05:41:58PM +0000, Jintao Lin wrote:
> If use dbus command CreateInterface to create a virtual AP interface,
> deleting this interface using dbus command RemoveInterface will also
> bring down the primary interface.
>
> wpa_supplicant never uses MBSSID when creating AP interface in
> wpa_driver_nl80211_if_add, so it should not go through the MBSSID
> tear down procedure in wpa_driver_nl80211_if_remove. The virtual AP
> resources init and deinit are well handled in wpa_driver_nl80211_init
> and wpa_driver_nl80211_deinit.
>
> Collapse the interface type to WPA_IF_STATION to skip the MBSSID
> cleanup procedure. This is inline with ctrl_iface. Add comments before
> the code to avoid confusion.
Thanks, applied. I'm not sure the control interface functionality was
done on purpose that way, but regardless, it seems reasonable to do this
in wpa_supplicant.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list