From: Muna Sinada Date: Mon, 9 Jun 2025 18:06:15 +0000 (-0700) Subject: AP MLD: Use MLD MAC address for creating new VLAN interfaces X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8506affcdfe3ec94d94a342a4be627792c6b467a;p=thirdparty%2Fhostap.git AP MLD: Use MLD MAC address for creating new VLAN interfaces Signed-off-by: Muna Sinada Signed-off-by: Pradeep Kumar Chitrapu --- diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c index 7a5c5a492..10719bde6 100644 --- a/src/ap/ap_drv_ops.c +++ b/src/ap/ap_drv_ops.c @@ -370,7 +370,14 @@ int hostapd_vlan_if_add(struct hostapd_data *hapd, const char *ifname) { char force_ifname[IFNAMSIZ]; u8 if_addr[ETH_ALEN]; - return hostapd_if_add(hapd, WPA_IF_AP_VLAN, ifname, hapd->own_addr, + const u8 *addr = hapd->own_addr; + +#ifdef CONFIG_IEEE80211BE + if (hapd->conf->mld_ap) + addr = hapd->mld->mld_addr; +#endif /* CONFIG_IEEE80211BE */ + + return hostapd_if_add(hapd, WPA_IF_AP_VLAN, ifname, addr, NULL, NULL, force_ifname, if_addr, NULL, 0); }