aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/main.c
diff options
context:
space:
mode:
authorAnton Nayshtut <qca_antonn@qca.qualcomm.com>2015-01-21 13:30:48 (GMT)
committerJouni Malinen <j@w1.fi>2015-07-16 15:26:15 (GMT)
commit6959145b86318710d0186b618d54bce2991a6e6f (patch)
tree48fcabc7a9c0caa33aae4b44508440d7353c65ed /hostapd/main.c
parentae667c0827e1976cac75d13ef4fc5595fb7fc191 (diff)
downloadhostap-6959145b86318710d0186b618d54bce2991a6e6f.zip
hostap-6959145b86318710d0186b618d54bce2991a6e6f.tar.gz
hostap-6959145b86318710d0186b618d54bce2991a6e6f.tar.bz2
FST: Integration into hostapd
This commit integrates the FST into the hostapd. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd/main.c')
-rw-r--r--hostapd/main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/hostapd/main.c b/hostapd/main.c
index 62d0775..534f182 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -24,6 +24,7 @@
#include "ap/hostapd.h"
#include "ap/ap_config.h"
#include "ap/ap_drv_ops.h"
+#include "fst/fst.h"
#include "config_file.h"
#include "eap_register.h"
#include "ctrl_iface.h"
@@ -666,6 +667,17 @@ int main(int argc, char *argv[])
return -1;
}
+ if (fst_global_init()) {
+ wpa_printf(MSG_ERROR,
+ "Failed to initialize global FST context");
+ goto out;
+ }
+
+#if defined(CONFIG_FST) && defined(CONFIG_CTRL_IFACE)
+ if (!fst_global_add_ctrl(fst_ctrl_cli))
+ wpa_printf(MSG_WARNING, "Failed to add CLI FST ctrl");
+#endif /* CONFIG_FST && CONFIG_CTRL_IFACE */
+
/* Allocate and parse configuration for full interface files */
for (i = 0; i < interfaces.count; i++) {
interfaces.iface[i] = hostapd_interface_init(&interfaces,
@@ -759,6 +771,8 @@ int main(int argc, char *argv[])
os_free(bss_config);
+ fst_global_deinit();
+
os_program_deinit();
return ret;