Support for 40-bit WEP keys.

This commit is contained in:
Nathan Summers 2009-03-26 00:03:44 -04:00 committed by Dave Hansen
parent 210ba89c20
commit 3bc61d296f
2 changed files with 3 additions and 0 deletions

View file

@ -422,6 +422,7 @@ int make_network_key(struct network_key *key, char *essid, char *pass)
memcpy(&key->wpa.key[0], hex_pass, key->len);
break;
case WEP_KEY_BYTES*2:
case WEP_40_KEY_BYTES*2:
eyefi_printf("hex WEP");
hex_pass = convert_ascii_to_hex(tmp, strlen(pass));
if (!hex_pass)

View file

@ -239,11 +239,13 @@ struct wpa_key {
u8 key[WPA_KEY_BYTES];
} __attribute((packed));
#define WEP_40_KEY_BYTES 5
#define WEP_KEY_BYTES 13
struct wep_key {
u8 key[WEP_KEY_BYTES];
} __attribute((packed));
struct network_key {
u8 len;
union {