[PATCH] AP MLD: Fix the build with CONFIG_IEEE80211BE and without IEEE80211AC

Andrei-Alexandru Bleortu me at andrei-z.com
Sun Oct 4 04:00:32 PDT 2026


A build with CONFIG_IEEE80211BE=y but without CONFIG_IEEE80211AC fails
to link: the per-link profile of the Multi-Link element in the
(Re)Association Response frame calls hostapd_eid_vht_capabilities() and
hostapd_eid_vht_operation(), which live in ieee802_11_vht.c, built only
with CONFIG_IEEE80211AC. Guard them the way the frame's own VHT
elements are guarded.

Fixes: 5f5db9366cde ("AP: MLO: Process Multi-Link element from (Re)Association Request frame")
Assisted-by: LLM
Signed-off-by: Andrei-Alexandru Bleortu <me at andrei-z.com>
---
 src/ap/ieee802_11.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 219a94b0f..bfec7d478 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -6809,10 +6809,12 @@ void ieee80211_ml_build_assoc_resp(struct hostapd_data *hapd,
 	p = hostapd_eid_ht_capabilities(hapd, p);
 	p = hostapd_eid_ht_operation(hapd, p);
 
+#ifdef CONFIG_IEEE80211AC
 	if (hostapd_is_vht_enabled(hapd)) {
 		p = hostapd_eid_vht_capabilities(hapd, p, 0);
 		p = hostapd_eid_vht_operation(hapd, p);
 	}
+#endif /* CONFIG_IEEE80211AC */
 
 	if (hostapd_is_he_enabled(hapd)) {
 		p = hostapd_eid_he_capab(hapd, p, IEEE80211_MODE_AP);
-- 
2.47.3





More information about the Hostap mailing list