]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Update fetching MLD ID to use BSSID Index
authorRameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com>
Thu, 9 Oct 2025 11:18:47 +0000 (16:48 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 13 Oct 2025 20:01:46 +0000 (23:01 +0300)
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 <rameshkumar.sundaram@oss.qualcomm.com>
Signed-off-by: Manish Dharanenthiran <manish.dharanenthiran@oss.qualcomm.com>
src/ap/hostapd.c

index 7a6b3468da4a67fd62dc55ce3a4212b5b82cff6a..b5a274e08a2ffbfd195624c40fe47b38fd470ff3 100644 (file)
@@ -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);
 }