diff options
author | Shan Palanisamy <shanp@qca.qualcomm.com> | 2012-02-16 19:43:48 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-02-16 19:43:48 +0200 |
commit | 0dcc4dc4b31d48ed32940b9adb0b9fcdcab32dc3 (patch) | |
tree | 33bb9317f2ec13d2bd93088f4d30f225af279d6e /hostapd | |
parent | c0971c561ffcb3a4d83183b24bc7a578ac8a3475 (diff) | |
download | external_wpa_supplicant_8_ti-0dcc4dc4b31d48ed32940b9adb0b9fcdcab32dc3.zip external_wpa_supplicant_8_ti-0dcc4dc4b31d48ed32940b9adb0b9fcdcab32dc3.tar.gz external_wpa_supplicant_8_ti-0dcc4dc4b31d48ed32940b9adb0b9fcdcab32dc3.tar.bz2 |
Do not call driver_init if hostapd interface is not yet configured
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd')
-rw-r--r-- | hostapd/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/hostapd/main.c b/hostapd/main.c index b0903cf..2748c61 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; |