From: Michael-CY Lee Date: Thu, 20 Mar 2025 00:53:28 +0000 (+0800) Subject: AP MLD: Always process every link in association request X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f39ca81898248aeaf447cac241d6719f670f02b7;p=thirdparty%2Fhostap.git AP MLD: Always process every link in association request Error might happen when handling one of the link(s) in association request, but immediately returning causes missing of status code of the unprocessed link(s) in association response. Always processing every link in association request ensures that every link has it status code in the association response. Fixes: 03e89de47b6c ("AP MLD: Process link info when handling new STA event with driver SME") Signed-off-by: Michael-CY Lee Signed-off-by: Money Wang --- diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 523e0a322..ccc82d046 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -4909,6 +4909,7 @@ int hostapd_process_assoc_ml_info(struct hostapd_data *hapd, bool reassoc, int tx_link_status, bool offload) { + int ret = 0; #ifdef CONFIG_IEEE80211BE unsigned int i; @@ -4950,12 +4951,12 @@ int hostapd_process_assoc_ml_info(struct hostapd_data *hapd, if (ieee80211_ml_process_link(bss, sta, link, ies, ies_len, reassoc, offload)) - return -1; + ret = -1; } } #endif /* CONFIG_IEEE80211BE */ - return 0; + return ret; }