aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-05-07 13:39:33 +0300
committerJouni Malinen <j@w1.fi>2012-05-07 13:39:33 +0300
commitfea7c3a0558787d6cc89b93207a612607f04d665 (patch)
tree20d9362358b4483711f256c0efab5976b5860491 /wpa_supplicant/config.h
parentd90134e74848d1ee090a3e6199599f355214586e (diff)
downloadexternal_wpa_supplicant_8_ti-fea7c3a0558787d6cc89b93207a612607f04d665.zip
external_wpa_supplicant_8_ti-fea7c3a0558787d6cc89b93207a612607f04d665.tar.gz
external_wpa_supplicant_8_ti-fea7c3a0558787d6cc89b93207a612607f04d665.tar.bz2
Ignore network blocks that have invalid WEP key length
Do not try to associate with a network that has an invalid or incomplete configuration because the association or at least data connection would fail anyway. This commits adds a common function for checking whether a network block is disabled to make it easier to check network blocks without having to reject them during configuration file parsing (which would prevent wpa_supplicant from starting). The only additional check added in this commit is to verify the WEP key length. Similar checks for other parameters can be added in future commits. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/config.h')
-rw-r--r--wpa_supplicant/config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/config.h b/wpa_supplicant/config.h
index 0ae6adf..e68b5a8 100644
--- a/wpa_supplicant/config.h
+++ b/wpa_supplicant/config.h
@@ -648,6 +648,7 @@ int wpa_config_set_quoted(struct wpa_ssid *ssid, const char *var,
char ** wpa_config_get_all(struct wpa_ssid *ssid, int get_keys);
char * wpa_config_get(struct wpa_ssid *ssid, const char *var);
char * wpa_config_get_no_key(struct wpa_ssid *ssid, const char *var);
+int wpas_network_disabled(struct wpa_ssid *ssid);
void wpa_config_update_psk(struct wpa_ssid *ssid);
int wpa_config_add_prio_network(struct wpa_config *config,
struct wpa_ssid *ssid);