[PATCH] NAN-IDP: Do not remove IDP interfaces as an AP BSS
Jouni Malinen
j at w1.fi
Thu Dec 3 10:54:38 PST 2026
On Thu, Dec 03, 2026 at 01:42:50PM +0200, Andrei Otcheretianski wrote:
> The IDP interfaces are added with wpa_drv_if_add(), which does not set
> up an AP BSS on the driver context of the calling interface (the NAN
> Device interface). However, they were removed through that interface
> with the type used to add them, i.e., WPA_IF_AP_BSS for the IDP AP
> interface. With nl80211, removing a WPA_IF_AP_BSS interface also tears
> down the BSS of the driver context used for the call. This unsubscribed
> the NAN Device interface from Management frames and marked its BSS as
> being deinitialized, so NAN frames were no longer received after an IDP
> AP interface was removed.
>
> Remove the IDP interfaces as WPA_IF_STATION, like the INTERFACE_REMOVE
> control interface command and, since commit 4bd1efe07354 ("dbus: Do not
> bring down primary interface when removing created AP interface"), the
> D-Bus RemoveInterface method do for the AP interfaces they create, so
> the driver only deletes the interface. The interface type is then no
> longer needed, so do not store it.
Thanks, applied.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list