AP MLD: Fix AID allocation for legacy STA

Currently, AID is not allocated properly in hostapd for legacy non-MLD
STA in case of an AP MLD. All such stations have same AID.

Fix this issue by allocating AID properly in hostapd when operating as
an AP MLD and the STA is not an MLD.

Fixes: d924be3bd0 ("AP: AID allocation for MLD")
Signed-off-by: Harish Rachakonda <quic_rachakon@quicinc.com>
This commit is contained in:
Harish Rachakonda 2024-01-30 14:45:58 +05:30 committed by Jouni Malinen
parent fe36750b39
commit f972420e82

View file

@ -3292,7 +3292,7 @@ static u32 hostapd_get_aid_word(struct hostapd_data *hapd,
/* Do not assign an AID that is in use on any of the affiliated links
* when finding an AID for a non-AP MLD. */
if (hapd->conf->mld_ap) {
if (hapd->conf->mld_ap && sta->mld_info.mld_sta) {
int j;
for (j = 0; j < MAX_NUM_MLD_LINKS; j++) {