Do not call driver_init if hostapd interface is not yet configured

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Shan Palanisamy 2012-02-16 19:43:48 +02:00 committed by Jouni Malinen
parent c0971c561f
commit 0dcc4dc4b3

View file

@ -339,10 +339,12 @@ hostapd_interface_init(struct hapd_interfaces *interfaces,
iface->bss[0]->conf->logger_stdout_level--; iface->bss[0]->conf->logger_stdout_level--;
} }
if (hostapd_driver_init(iface) || if (iface->conf->bss[0].iface[0] != 0) {
hostapd_setup_interface(iface)) { if (hostapd_driver_init(iface) ||
hostapd_interface_deinit_free(iface); hostapd_setup_interface(iface)) {
return NULL; hostapd_interface_deinit_free(iface);
return NULL;
}
} }
return iface; return iface;