]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FST: Do not prune STAs belonging to the same FST
authorAnton Nayshtut <qca_antonn@qca.qualcomm.com>
Wed, 21 Jan 2015 13:30:48 +0000 (15:30 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 16 Jul 2015 15:26:15 +0000 (18:26 +0300)
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/utils.c

index d60555a87bde2aa7cce4c0860c7ee53e668380c7..fcb371bec28343c90c478f80cb392588c3b923eb 100644 (file)
@@ -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;