]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Use MLD MAC address for creating new VLAN interfaces
authorMuna Sinada <muna.sinada@oss.qualcomm.com>
Mon, 9 Jun 2025 18:06:15 +0000 (11:06 -0700)
committerJouni Malinen <j@w1.fi>
Mon, 29 Sep 2025 19:46:18 +0000 (22:46 +0300)
Signed-off-by: Muna Sinada <muna.sinada@oss.qualcomm.com>
Signed-off-by: Pradeep Kumar Chitrapu <quic_pradeepc@quicinc.com>
src/ap/ap_drv_ops.c

index 7a5c5a492ec9f989c1f2a2bdde0a77dc942b077a..10719bde63f541ff0f037f6a744ee5294e3aa28f 100644 (file)
@@ -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);
 }