Fixed auth_send_eapol() to use correct ctx structure
authorJouni Malinen <j@w1.fi>
Thu, 15 Jan 2009 23:18:11 +0000 (01:18 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 15 Jan 2009 23:18:11 +0000 (01:18 +0200)
wpa_supplicant/ibss_rsn.c

index f9b069d..e459081 100644 (file)
@@ -184,8 +184,8 @@ static const u8 * auth_get_psk(void *ctx, const u8 *addr, const u8 *prev_psk)
 static int auth_send_eapol(void *ctx, const u8 *addr, const u8 *data,
                           size_t data_len, int encrypt)
 {
-       struct ibss_rsn_peer *peer = ctx;
-       struct wpa_supplicant *wpa_s = peer->ibss_rsn->wpa_s;
+       struct ibss_rsn *ibss_rsn = ctx;
+       struct wpa_supplicant *wpa_s = ibss_rsn->wpa_s;
 
        wpa_printf(MSG_DEBUG, "AUTH: %s(addr=" MACSTR " data_len=%lu "
                   "encrypt=%d)",