diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2010-10-31 12:38:49 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2010-10-31 12:38:49 +0200 |
commit | ae6e1bee67231b1c0bb69b6742ac99eba4e1dd14 (patch) | |
tree | 3a0d0dc365d43a6db8888917e9056bd5e6e7128e /hostapd/config_file.c | |
parent | b7412dabd94036b2d0f39e8cc8ab963c98d22164 (diff) | |
download | external_wpa_supplicant_8_ti-ae6e1bee67231b1c0bb69b6742ac99eba4e1dd14.zip external_wpa_supplicant_8_ti-ae6e1bee67231b1c0bb69b6742ac99eba4e1dd14.tar.gz external_wpa_supplicant_8_ti-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/config_file.c')
-rw-r--r-- | hostapd/config_file.c | 2 |
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; } |