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>
bool reassoc, int tx_link_status,
bool offload)
{
+ int ret = 0;
#ifdef CONFIG_IEEE80211BE
unsigned int i;
if (ieee80211_ml_process_link(bss, sta, link,
ies, ies_len, reassoc,
offload))
- return -1;
+ ret = -1;
}
}
#endif /* CONFIG_IEEE80211BE */
- return 0;
+ return ret;
}