[PATCH v2 09/35] nl80211: Support NAN Device interface

Jouni Malinen j at w1.fi
Wed Jan 28 09:31:37 PST 2026


On Tue, Dec 23, 2025 at 01:45:58PM +0200, Andrei Otcheretianski wrote:
> @@ -3347,11 +3367,11 @@ wpa_driver_nl80211_finish_drv_init(struct i802_bss *bss, const u8 *set_addr,
> -	if (!drv->hostapd && nlmode != NL80211_IFTYPE_P2P_DEVICE)
> -		netlink_send_oper_ifla(drv->global->netlink, bss->ifindex,
> +	if (!drv->hostapd && nl80211_is_netdev_iftype(nlmode))
> +		netlink_send_oper_ifla(drv->global->netlink, drv->ifindex,
>  				       1, IF_OPER_DORMANT);

Is that change from bss->ifindex to drv->ifindex really correct and on
purpose here? It does not seem to have anything to do with NAN and that
nl80211_is_netdev_iftype() is indeed excluding the NAN case.. I'm
dropping this bss->ifindex to drv->ifindex change. If it is really
needed, it needs to be in a separate commit that explains the change
clearly.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list