While trying to set WEP key an invalid key length can be set, but set command returns "OK". User is unable to know about the invalid WEP key length. This patch returns "FAIL" so that user can correct WEP key. Signed-off-by: Saurav Babu <saurav.babu@xxxxxxxxxxx> --- wpa_supplicant/config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wpa_supplicant/config.c b/wpa_supplicant/config.c index dd922ca..6bda2f9 100644 --- a/wpa_supplicant/config.c +++ b/wpa_supplicant/config.c @@ -1563,6 +1563,7 @@ static int wpa_config_parse_wep_key(u8 *key, size_t *len, int line, wpa_printf(MSG_ERROR, "Line %d: Invalid WEP key length %u - " "this network block will be ignored", line, (unsigned int) *len); + return -1; } os_memcpy(key, buf, *len); str_clear_free(buf); -- 1.9.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap