aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/utils.c
diff options
context:
space:
mode:
authorAnton Nayshtut <qca_antonn@qca.qualcomm.com>2015-01-21 15:30:48 +0200
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:19:33 -0600
commit298d175bb72a38a1b1a6feb1fa2b18763f9bbbe6 (patch)
tree5a3cb8d784c5a4169d9ef16791752b2cf7c392b8 /src/ap/utils.c
parenta724610c002e3e4a9f6ae544cd9a93cbcdc582e7 (diff)
downloadandroid_external_wpa_supplicant_8-298d175bb72a38a1b1a6feb1fa2b18763f9bbbe6.tar.gz
android_external_wpa_supplicant_8-298d175bb72a38a1b1a6feb1fa2b18763f9bbbe6.tar.bz2
android_external_wpa_supplicant_8-298d175bb72a38a1b1a6feb1fa2b18763f9bbbe6.zip
FST: Do not prune STAs belonging to the same FST
Change-Id: Ic2a188f23d4eeff7f65c31224b99d2fa8b33a414 Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Git-commit: 8bae489f155e9a1d5888710d570c516f1cf2021b Git-repo: git://w1.fi/srv/git/hostap.git CRs-Fixed: 891455
Diffstat (limited to 'src/ap/utils.c')
-rw-r--r--src/ap/utils.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ap/utils.c b/src/ap/utils.c
index d60555a8..fcb371be 100644
--- a/src/ap/utils.c
+++ b/src/ap/utils.c
@@ -10,6 +10,7 @@
#include "common.h"
#include "common/ieee802_11_defs.h"
+#include "fst/fst.h"
#include "sta_info.h"
#include "hostapd.h"
@@ -55,6 +56,14 @@ static int prune_associations(struct hostapd_iface *iface, void *ctx)
ohapd = iface->bss[j];
if (ohapd == data->hapd)
continue;
+#ifdef CONFIG_FST
+ /* Don't prune STAs belong to same FST */
+ if (ohapd->iface->fst &&
+ data->hapd->iface->fst &&
+ fst_are_ifaces_aggregated(ohapd->iface->fst,
+ data->hapd->iface->fst))
+ continue;
+#endif /* CONFIG_FST */
osta = ap_get_sta(ohapd, data->addr);
if (!osta)
continue;