From b7db495ad9c9effbcc6dd10453854922828e94f6 Mon Sep 17 00:00:00 2001 From: Ilan Peer Date: Sun, 18 Jun 2023 17:55:40 +0300 Subject: [PATCH] AP: Fix ieee802_1x_ml_set_sta_authorized() One of the conditions in the function should be inverted. Fix it. Signed-off-by: Ilan Peer --- src/ap/ieee802_1x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ap/ieee802_1x.c b/src/ap/ieee802_1x.c index 5688f1a9e..052231e34 100644 --- a/src/ap/ieee802_1x.c +++ b/src/ap/ieee802_1x.c @@ -169,7 +169,7 @@ static void ieee802_1x_ml_set_sta_authorized(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;