]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Avoid using mld_id to identify partners
authorSai Pratyusha Magam <smagam@qti.qualcomm.com>
Mon, 18 Aug 2025 17:47:10 +0000 (23:17 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 21 Aug 2025 21:26:45 +0000 (00:26 +0300)
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 <smagam@qti.qualcomm.com>
src/ap/drv_callbacks.c

index c38d76b3a69001556a7a5f73880fbc10a992a051..d7e61dfd411541bb3edba0298ceb3f75ac2761be 100644 (file)
@@ -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);