hostapd: Allow 'none' driver to be started without ifname

Commit 0dcc4dc4b3 made driver
initialization conditional on interface name being configured. This can
break hostapd-as-RADIUS-server use case where this parameter does not
really make any sense. Fix this with a special case for the none driver.

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2012-02-16 23:11:29 +02:00
parent deca6eff74
commit 9d23cff598

View file

@ -21,6 +21,7 @@
#include "eap_server/tncs.h" #include "eap_server/tncs.h"
#include "ap/hostapd.h" #include "ap/hostapd.h"
#include "ap/ap_config.h" #include "ap/ap_config.h"
#include "ap/ap_drv_ops.h"
#include "config_file.h" #include "config_file.h"
#include "eap_register.h" #include "eap_register.h"
#include "dump_state.h" #include "dump_state.h"
@ -316,7 +317,8 @@ hostapd_interface_init(struct hapd_interfaces *interfaces,
iface->bss[0]->conf->logger_stdout_level--; iface->bss[0]->conf->logger_stdout_level--;
} }
if (iface->conf->bss[0].iface[0] != 0) { if (iface->conf->bss[0].iface[0] != 0 ||
hostapd_drv_none(iface->bss[0])) {
if (hostapd_driver_init(iface) || if (hostapd_driver_init(iface) ||
hostapd_setup_interface(iface)) { hostapd_setup_interface(iface)) {
hostapd_interface_deinit_free(iface); hostapd_interface_deinit_free(iface);