nl80211: Fix WEP key configuration for prior to authentication
authorHolger Schurig <holgerschurig@gmail.com>
Sun, 28 Mar 2010 05:22:17 +0000 (22:22 -0700)
committerJouni Malinen <j@w1.fi>
Sun, 28 Mar 2010 05:22:17 +0000 (22:22 -0700)
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

index ddd2b2d..4eba8aa 100644 (file)
@@ -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]);