From: Sai Pratyusha Magam Date: Mon, 18 Aug 2025 17:47:10 +0000 (+0530) Subject: AP MLD: Avoid using mld_id to identify partners X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52fb5ccd91f313079c79e7e7c9e3675d6759d5a7;p=thirdparty%2Fhostap.git AP MLD: Avoid using mld_id to identify partners Not all implementations set mld_id as a user configuration to identify partner BSS in an AP MLD, hence use hostapd_is_ml_partner() instead that checks for interface name to identify partner BSSs. Signed-off-by: Sai Pratyusha Magam --- diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c index c38d76b3a..d7e61dfd4 100644 --- a/src/ap/drv_callbacks.c +++ b/src/ap/drv_callbacks.c @@ -1038,7 +1038,7 @@ void hostapd_notif_disassoc_mld(struct hostapd_data *assoc_hapd, if (!tmp_hapd->conf->mld_ap || assoc_hapd == tmp_hapd || - assoc_hapd->conf->mld_id != tmp_hapd->conf->mld_id) + !hostapd_is_ml_partner(assoc_hapd, tmp_hapd)) continue; tmp_sta = ap_get_sta(tmp_hapd, addr); @@ -1088,7 +1088,7 @@ void hostapd_notif_disassoc(struct hostapd_data *hapd, const u8 *addr) struct hostapd_bss_config *hconf = h_hapd->conf; if (!hconf->mld_ap || - hconf->mld_id != hapd->conf->mld_id) + !hostapd_is_ml_partner(hapd, h_hapd)) continue; sta = ap_get_sta(h_hapd, addr);