Support for 40-bit WEP keys.
This commit is contained in:
parent
210ba89c20
commit
3bc61d296f
2 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue