Index: contrib/wpa/wpa_supplicant/wpa_supplicant.c =================================================================== --- contrib/wpa/wpa_supplicant/wpa_supplicant.c (revision 261605) +++ contrib/wpa/wpa_supplicant/wpa_supplicant.c (working copy) @@ -3654,6 +3654,11 @@ size_t len = ssid->wep_key_len[i]; if (len == 0) continue; + if (len == 5 && !(drv_enc & WPA_DRIVER_CAPA_ENC_WEP40)) { + wpa_dbg(wpa_s, MSG_DEBUG, "DEBUG: Your Wireless driver claims not to support WEP, " + "Ignoring that and doing it anyway"); + return 0; + } if (len == 5 && (drv_enc & WPA_DRIVER_CAPA_ENC_WEP40)) continue; if (len == 13 && (drv_enc & WPA_DRIVER_CAPA_ENC_WEP104))