]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Fix Association Response frame ACK handling
authorJouni Malinen <j@w1.fi>
Sat, 13 Jan 2024 10:16:51 +0000 (12:16 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Jan 2024 17:09:31 +0000 (19:09 +0200)
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: 55038680a606 ("AP: MLO: Handle association callback")
Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/ieee802_11.c

index 50190a280b67e750bbaa88a41334f2ac5f0af593..9aba561b2c58bfb19deca1e97652978a7d93ff8d 100644 (file)
@@ -6440,7 +6440,7 @@ static void hostapd_ml_handle_assoc_cb(struct hostapd_data *hapd,
                        struct hostapd_data *tmp_hapd =
                                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)
                                continue;