AP MLD: Skip association link processing in ML info

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>
This commit is contained in:
Aditya Kumar Singh 2024-03-28 23:46:45 +05:30 committed by Jouni Malinen
parent 4a1197acde
commit 19fdcf511b

View 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]; struct mld_link_info *link = &sta->mld_info.links[i];
bool link_bss_found = false; bool link_bss_found = false;
if (!link->valid) if (!link->valid || i == sta->mld_assoc_link_id)
continue; continue;
for_each_mld_link(bss, hapd) { for_each_mld_link(bss, hapd) {