]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Skip association link processing in ML info
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Thu, 28 Mar 2024 18:16:45 +0000 (23:46 +0530)
committerJouni Malinen <j@w1.fi>
Sat, 20 Apr 2024 15:31:11 +0000 (18:31 +0300)
All links were iterated over during processing ML info in Association
Request frame. However, the association link info will not be present in
the ML info and hence the following debug print is observed during ML
association (assoc link is 1):

MLD: No link match for link_id=1

Skip processing for the association link to avoid this.

Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
src/ap/ieee802_11.c

index f603af36df96a8dc5c4761792acdd1f7331e4cf6..c078a05360b026c6dd126a2b0323d97b4b843d54 100644 (file)
@@ -4575,7 +4575,7 @@ int hostapd_process_assoc_ml_info(struct hostapd_data *hapd,
                struct mld_link_info *link = &sta->mld_info.links[i];
                bool link_bss_found = false;
 
-               if (!link->valid)
+               if (!link->valid || i == sta->mld_assoc_link_id)
                        continue;
 
                for_each_mld_link(bss, hapd) {