aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2010-10-31 10:38:49 (GMT)
committerJouni Malinen <j@w1.fi>2010-10-31 10:38:49 (GMT)
commitae6e1bee67231b1c0bb69b6742ac99eba4e1dd14 (patch)
tree3a0d0dc365d43a6db8888917e9056bd5e6e7128e /hostapd
parentb7412dabd94036b2d0f39e8cc8ab963c98d22164 (diff)
downloadhostap-ae6e1bee67231b1c0bb69b6742ac99eba4e1dd14.zip
hostap-ae6e1bee67231b1c0bb69b6742ac99eba4e1dd14.tar.gz
hostap-ae6e1bee67231b1c0bb69b6742ac99eba4e1dd14.tar.bz2
Add WPA_IGNORE_CONFIG_ERRORS option to continue in case of bad config
This is an option to continue with wpa_supplicant and hostapd even if config file has errors. The problem is that these daemons are the best "candidates" for the config change, so if they can not start because config file was let's say corrupted, you can not fix it easily. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/config_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index a6a3e5c..e53d9c1 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2071,12 +2071,14 @@ struct hostapd_config * hostapd_config_read(const char *fname)
if (hostapd_config_check(conf))
errors++;
+#ifndef WPA_IGNORE_CONFIG_ERRORS
if (errors) {
wpa_printf(MSG_ERROR, "%d errors found in configuration file "
"'%s'", errors, fname);
hostapd_config_free(conf);
conf = NULL;
}
+#endif /* WPA_IGNORE_CONFIG_ERRORS */
return conf;
}