[PATCH] AP: Do not include ML element inside per-STA profile

Andrei Otcheretianski andrei.otcheretianski at intel.com
Tue Dec 12 08:39:13 PST 2023


From: Benjamin Berg <benjamin.berg at intel.com>

The Basic Multi-Link element should not be included in the per-STA
profile. We do need it on the client for a BSS that was discovered using
an ML Probe, but we rely on the kernel to ensure the appropriate element
is included.

Signed-off-by: Benjamin Berg <benjamin.berg at intel.com>
---
Note that this requires the following kernel change:
"wifi: cfg80211: generate an ML element for per-STA profiles"
https://patchwork.kernel.org/project/linux-wireless/patch/20231211085121.abde63d9cc6d.I3d346be0f84f51dccf4f4f92a3e997e6102b9456@changeid/
---
 src/ap/beacon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ap/beacon.c b/src/ap/beacon.c
index 935ffd25ef..b19be6bad4 100644
--- a/src/ap/beacon.c
+++ b/src/ap/beacon.c
@@ -799,7 +799,7 @@ static u8 * hostapd_probe_resp_fill_elems(struct hostapd_data *hapd,
 		struct hostapd_data *ml_elem_ap =
 			params->mld_ap ? params->mld_ap : hapd;
 
-		if (ml_elem_ap->conf->mld_ap)
+		if (ml_elem_ap->conf->mld_ap && !params->is_ml_sta_info)
 			pos = hostapd_eid_eht_ml_beacon(
 				ml_elem_ap, params->mld_info,
 				pos, !!params->mld_ap);
-- 
2.38.1




More information about the Hostap mailing list