]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP: Fix ieee802_1x_ml_set_sta_authorized()
authorIlan Peer <ilan.peer@intel.com>
Sun, 18 Jun 2023 14:55:40 +0000 (17:55 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 11 Aug 2023 08:27:02 +0000 (11:27 +0300)
One of the conditions in the function should be inverted. Fix it.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
src/ap/ieee802_1x.c

index 5688f1a9e0bb549b481d2b606ef1b50e002cf892..052231e34fb8d6857ea02a8d90ec09d3b0bf7416 100644 (file)
@@ -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;