From: Shan Palanisamy Date: Thu, 16 Feb 2012 17:43:48 +0000 (+0200) Subject: Do not call driver_init if hostapd interface is not yet configured X-Git-Tag: hostap_2_0~870 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dcc4dc4b31d48ed32940b9adb0b9fcdcab32dc3;p=thirdparty%2Fhostap.git Do not call driver_init if hostapd interface is not yet configured Signed-hostap: Jouni Malinen --- diff --git a/hostapd/main.c b/hostapd/main.c index b0903cfc3..2748c61f1 100644 --- a/hostapd/main.c +++ b/hostapd/main.c @@ -339,10 +339,12 @@ hostapd_interface_init(struct hapd_interfaces *interfaces, iface->bss[0]->conf->logger_stdout_level--; } - if (hostapd_driver_init(iface) || - hostapd_setup_interface(iface)) { - hostapd_interface_deinit_free(iface); - return NULL; + if (iface->conf->bss[0].iface[0] != 0) { + if (hostapd_driver_init(iface) || + hostapd_setup_interface(iface)) { + hostapd_interface_deinit_free(iface); + return NULL; + } } return iface;