From 2ea2fcc7e6dd35074a15e407d2269564e5a929d6 Mon Sep 17 00:00:00 2001 From: Holger Schurig Date: Sat, 27 Mar 2010 22:22:17 -0700 Subject: [PATCH] nl80211: Fix WEP key configuration for prior to authentication The driver data was changed from struct wpa_driver_nl80211_data * to struct i802_bss * and the internal call will need to match that change. --- src/drivers/driver_nl80211.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index ddd2b2deb..4eba8aa22 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -2274,8 +2274,8 @@ retry: for (i = 0; i < 4; i++) { if (!params->wep_key[i]) continue; - wpa_driver_nl80211_set_key(bss->ifname, drv, WPA_ALG_WEP, NULL, - i, + wpa_driver_nl80211_set_key(bss->ifname, priv, WPA_ALG_WEP, + NULL, i, i == params->wep_tx_keyidx, NULL, 0, params->wep_key[i], params->wep_key_len[i]);