driver_nl80211: Fix MLME key settings for static WEP
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 15 Sep 2009 07:48:30 +0000 (10:48 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 15 Sep 2009 07:48:30 +0000 (10:48 +0300)
commit0194fedb46e660eb1e606959a1f4479077f3e7e2
tree2f8480516a13ea4650fbfccd900a15c2d78b47d9
parent60b94c9819199c0427e623080ebae27fe44be6b5
driver_nl80211: Fix MLME key settings for static WEP

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.

Additionally, the kernel API slightly changed to accept keys only when
connected, so we need to send it the keys after that. For that to work
with shared key authentication, we also include the default WEP TX key
in the authentication command.

To upload the keys properly _after_ associating, add a new flag
WPA_DRIVER_FLAGS_SET_KEYS_AFTER_ASSOC_DONE indicating that the driver
needs the keys at that point and not earlier.
src/drivers/driver.h
src/drivers/driver_nl80211.c
wpa_supplicant/events.c
wpa_supplicant/wpa_supplicant.c
wpa_supplicant/wpa_supplicant_i.h