From: Andrei Otcheretianski Date: Tue, 23 Dec 2025 11:46:07 +0000 (+0200) Subject: nl80211: Allow NAN management interface MAC address to be set X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bf3a3a5a6cab7a37bd47e987a66cfaf7e25c543;p=thirdparty%2Fhostap.git nl80211: Allow NAN management interface MAC address to be set Signed-off-by: Andrei Otcheretianski --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index ce139e9f3..627438bcb 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -6529,7 +6529,8 @@ static int nl80211_create_iface_once(struct wpa_driver_nl80211_data *drv, if (nla_put_flag(msg, NL80211_ATTR_IFACE_SOCKET_OWNER)) goto fail; - if ((addr && iftype == NL80211_IFTYPE_P2P_DEVICE) && + if ((addr && (iftype == NL80211_IFTYPE_P2P_DEVICE || + iftype == NL80211_IFTYPE_NAN)) && nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, addr)) goto fail;