projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a47d56
)
nl80211: Fix WEP key configuration
author
Johannes Berg
<johannes@sipsolutions.net>
Sun, 26 Jul 2009 18:22:55 +0000
(21:22 +0300)
committer
Jouni Malinen
<j@w1.fi>
Sun, 26 Jul 2009 18:22:55 +0000
(21:22 +0300)
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>
src/drivers/driver_nl80211.c
patch
|
blob
|
history
diff --git
a/src/drivers/driver_nl80211.c
b/src/drivers/driver_nl80211.c
index
622a47f
..
9b2bf7c
100644
(file)
--- a/
src/drivers/driver_nl80211.c
+++ b/
src/drivers/driver_nl80211.c
@@
-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);
if (addr && os_memcmp(addr, "\xff\xff\xff\xff\xff\xff", ETH_ALEN) != 0)