AP MLD: Fix link_id validity check for own links
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: 2042cae9b3
("AP MLD: Generate and keep per STA profiles for each link")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
ffc9fa0132
commit
ba6b3dc78e
1 changed files with 1 additions and 1 deletions
|
@ -3125,7 +3125,7 @@ static void hostapd_gen_per_sta_profiles(struct hostapd_data *hapd)
|
|||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue