AP MLD: Fix Association Response frame ACK handling

Invert the check on hapd->conf->mld_ap on the affiliated links to
actually call the link specific callback handler. This is needed to set
the STA associated.

Fixes: 55038680a6 ("AP: MLO: Handle association callback")
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2024-01-13 12:16:51 +02:00
parent 07f44a7c42
commit febb51bf87

View file

@ -6440,7 +6440,7 @@ static void hostapd_ml_handle_assoc_cb(struct hostapd_data *hapd,
struct hostapd_data *tmp_hapd = struct hostapd_data *tmp_hapd =
hapd->iface->interfaces->iface[i]->bss[0]; hapd->iface->interfaces->iface[i]->bss[0];
if (tmp_hapd->conf->mld_ap || if (!tmp_hapd->conf->mld_ap ||
hapd->conf->mld_id != tmp_hapd->conf->mld_id) hapd->conf->mld_id != tmp_hapd->conf->mld_id)
continue; continue;