From 740f50acb4ffa7e14f8d85c06df7cd3a7dbfa6d9 Mon Sep 17 00:00:00 2001 From: Rameshkumar Sundaram Date: Thu, 9 Oct 2025 16:48:47 +0530 Subject: [PATCH] AP MLD: Update fetching MLD ID to use BSSID Index Currently, hostapd_get_mld_id() returns 0 by default if mld_ap is set. Update this function to correctly fetch the MBSSID Index based on the hostapd data. Signed-off-by: Rameshkumar Sundaram Signed-off-by: Manish Dharanenthiran --- src/ap/hostapd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index 7a6b3468d..b5a274e08 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -5113,10 +5113,7 @@ u8 hostapd_get_mld_id(struct hostapd_data *hapd) if (!hapd->conf->mld_ap) return 255; - /* MLD ID 0 represents self */ - return 0; - - /* TODO: MLD ID for Multiple BSS cases */ + return hostapd_mbssid_get_bss_index(hapd); } -- 2.47.3