The check against MAX_NUM_MLD_LINKS was off by one for the loop that
goes through hapd->partner_links[]. It does not look like this would
actually result in any real issues since the loop is on own set of
configured links. Anyway, it is better to have the bounds checking
accurate.
Fixes: 2042cae9b3a4 ("AP MLD: Generate and keep per STA profiles for each link")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
continue;
link_id = link_bss->mld_link_id;
- if (link_id > MAX_NUM_MLD_LINKS)
+ if (link_id >= MAX_NUM_MLD_LINKS)
continue;
sta_profile = NULL;