]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Always process every link in association request
authorMichael-CY Lee <michael-cy.lee@mediatek.com>
Thu, 20 Mar 2025 00:53:28 +0000 (08:53 +0800)
committerJouni Malinen <j@w1.fi>
Thu, 20 Mar 2025 21:09:08 +0000 (23:09 +0200)
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 <michael-cy.lee@mediatek.com>
Signed-off-by: Money Wang <money.wang@mediatek.com>
src/ap/ieee802_11.c

index 523e0a32219ee3522a2e289c552a90713232b2d0..ccc82d04610b6af18cb24d30ab10025f7044abd6 100644 (file)
@@ -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;
 }