#include "eap_server/tncs.h"
#include "hostapd.h"
#include "config.h"
+#include "config_file.h"
extern int wpa_debug_level;
if (hapd_iface == NULL)
goto fail;
+ hapd_iface->config_read_cb = hostapd_config_read;
hapd_iface->config_fname = os_strdup(config_file);
if (hapd_iface->config_fname == NULL)
goto fail;
int c, debug = 0, daemonize = 0;
char *pid_file = NULL;
+ if (os_program_init())
+ return -1;
+
for (;;) {
c = getopt(argc, argv, "BdhKP:tv");
if (c < 0)
hostapd_global_deinit(pid_file);
os_free(pid_file);
+ os_program_deinit();
+
return ret;
}