diff mbox series

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

Message ID 20231212163913.230763-1-andrei.otcheretianski@intel.com
State New
Headers show
Series AP: Do not include ML element inside per-STA profile | expand

Commit Message

Andrei Otcheretianski Dec. 12, 2023, 4:39 p.m. UTC
From: Benjamin Berg <benjamin.berg@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@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 mbox series

Patch

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);