]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/ap/utils.c
Add a hostapd testing option for skipping association pruning
[thirdparty/hostap.git] / src / ap / utils.c
index fcb371bec28343c90c478f80cb392588c3b923eb..bedad6eb02f7bfda2b421ad4591e0edd6438b09a 100644 (file)
@@ -56,6 +56,10 @@ static int prune_associations(struct hostapd_iface *iface, void *ctx)
                ohapd = iface->bss[j];
                if (ohapd == data->hapd)
                        continue;
+#ifdef CONFIG_TESTING_OPTIONS
+               if (ohapd->conf->skip_prune_assoc)
+                       continue;
+#endif /* CONFIG_TESTING_OPTIONS */
 #ifdef CONFIG_FST
                /* Don't prune STAs belong to same FST */
                if (ohapd->iface->fst &&