From: Rameshkumar Sundaram Date: Thu, 9 Oct 2025 11:18:47 +0000 (+0530) Subject: AP MLD: Update fetching MLD ID to use BSSID Index X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=740f50acb4ffa7e14f8d85c06df7cd3a7dbfa6d9;p=thirdparty%2Fhostap.git 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 --- 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); }