aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2012-02-16 23:11:29 +0200
committerJouni Malinen <j@w1.fi>2012-02-16 23:11:29 +0200
commit9d23cff5984e173cc4f4a2afb0d5c6603da75e7a (patch)
treed9232195118549fb1b9e5c79515489cded3ba0c6 /hostapd
parentdeca6eff74411b8c93e7c7c31406de7367a0b540 (diff)
downloadexternal_wpa_supplicant_8_ti-9d23cff5984e173cc4f4a2afb0d5c6603da75e7a.zip
external_wpa_supplicant_8_ti-9d23cff5984e173cc4f4a2afb0d5c6603da75e7a.tar.gz
external_wpa_supplicant_8_ti-9d23cff5984e173cc4f4a2afb0d5c6603da75e7a.tar.bz2
hostapd: Allow 'none' driver to be started without ifname
Commit 0dcc4dc4b31d48ed32940b9adb0b9fcdcab32dc3 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>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hostapd/main.c b/hostapd/main.c
index f33a160..d8c2776 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -21,6 +21,7 @@
#include "eap_server/tncs.h"
#include "ap/hostapd.h"
#include "ap/ap_config.h"
+#include "ap/ap_drv_ops.h"
#include "config_file.h"
#include "eap_register.h"
#include "dump_state.h"
@@ -316,7 +317,8 @@ hostapd_interface_init(struct hapd_interfaces *interfaces,
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) ||
hostapd_setup_interface(iface)) {
hostapd_interface_deinit_free(iface);