aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-11-05 11:39:21 (GMT)
committerJouni Malinen <j@w1.fi>2013-11-05 15:35:11 (GMT)
commit2b6623ab134fff6d96114f5fe329a2f87d5e893a (patch)
tree12b8f38bd2918b01dada1aaab91991b1f1b0fa99 /hostapd
parent66f0bdb4659eac7341a98433efa4c03c62b65a56 (diff)
downloadhostap-2b6623ab134fff6d96114f5fe329a2f87d5e893a.zip
hostap-2b6623ab134fff6d96114f5fe329a2f87d5e893a.tar.gz
hostap-2b6623ab134fff6d96114f5fe329a2f87d5e893a.tar.bz2
hostapd: Do not terminate process on dynamic interface add failure
Limit the calls to eloop_terminate() to happen only for the initialization failure from the interfaces that we specified on the command line. This allows hostapd process to continue operating even if a dynamically added interface fails to start up. This allows the upper layer software to fix a configuration error and retry. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hostapd/main.c b/hostapd/main.c
index bc61db1..4e9fe40 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -693,6 +693,7 @@ int main(int argc, char *argv[])
* In such case, the interface will be enabled from eloop context within
* hostapd_global_run().
*/
+ interfaces.terminate_on_error = interfaces.count;
for (i = 0; i < interfaces.count; i++) {
if (hostapd_driver_init(interfaces.iface[i]) ||
hostapd_setup_interface(interfaces.iface[i]))