mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
nl80211: Fix WEP key configuration
Current wpa_supplicant has a bug with WEP keys, it adds a zero-length sequence counter field to netlink which the kernel doesn't accept. Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
This commit is contained in:
parent
7a47d567cf
commit
849ef835a7
@ -1680,7 +1680,7 @@ static int nl_set_encr(int ifindex, struct wpa_driver_nl80211_data *drv,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (seq)
|
if (seq && seq_len)
|
||||||
NLA_PUT(msg, NL80211_ATTR_KEY_SEQ, seq_len, seq);
|
NLA_PUT(msg, NL80211_ATTR_KEY_SEQ, seq_len, seq);
|
||||||
|
|
||||||
if (addr && os_memcmp(addr, "\xff\xff\xff\xff\xff\xff", ETH_ALEN) != 0)
|
if (addr && os_memcmp(addr, "\xff\xff\xff\xff\xff\xff", ETH_ALEN) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user