aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/main.c
diff options
context:
space:
mode:
authorShan Palanisamy <shanp@qca.qualcomm.com>2011-12-16 18:42:40 (GMT)
committerJouni Malinen <j@w1.fi>2012-08-25 10:47:36 (GMT)
commit7554565299a11b7bd508e0c134347e954ed5d0a1 (patch)
tree451eeb26881465b5e1e7571d6779264b9f8d1037 /hostapd/main.c
parentc90fd485141fd5e713684cfb385c557a618fa70d (diff)
downloadhostap-7554565299a11b7bd508e0c134347e954ed5d0a1.zip
hostap-7554565299a11b7bd508e0c134347e954ed5d0a1.tar.gz
hostap-7554565299a11b7bd508e0c134347e954ed5d0a1.tar.bz2
hostapd: Add ctrl_iface for enabling/reloading/disabling interface
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd/main.c')
-rw-r--r--hostapd/main.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/hostapd/main.c b/hostapd/main.c
index 94b90be..d6c914a 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -279,21 +279,6 @@ static int hostapd_driver_init(struct hostapd_iface *iface)
}
-static void hostapd_interface_deinit_free(struct hostapd_iface *iface)
-{
- const struct wpa_driver_ops *driver;
- void *drv_priv;
- if (iface == NULL)
- return;
- driver = iface->bss[0]->driver;
- drv_priv = iface->bss[0]->drv_priv;
- hostapd_interface_deinit(iface);
- if (driver && driver->hapd_deinit && drv_priv)
- driver->hapd_deinit(drv_priv);
- hostapd_interface_free(iface);
-}
-
-
static struct hostapd_iface *
hostapd_interface_init(struct hapd_interfaces *interfaces,
const char *config_fname, int debug)
@@ -565,6 +550,7 @@ int main(int argc, char *argv[])
interfaces.for_each_interface = hostapd_for_each_interface;
interfaces.ctrl_iface_init = hostapd_ctrl_iface_init;
interfaces.ctrl_iface_deinit = hostapd_ctrl_iface_deinit;
+ interfaces.driver_init = hostapd_driver_init;
interfaces.global_iface_path = NULL;
interfaces.global_iface_name = NULL;
interfaces.global_ctrl_sock = -1;