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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Benjamin Berg <benjamin.berg@xxxxxxxxx>

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@xxxxxxxxx>
---
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


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux