nl80211: Fix driver context pointer for auth-failure-case
authorJouni Malinen <j@w1.fi>
Sun, 7 Mar 2010 19:29:34 +0000 (21:29 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 7 Mar 2010 19:29:34 +0000 (21:29 +0200)
The new per-BSS context needs to be used here when calling
wpa_driver_nl80211_deauthenticate() to avoid passing incorrect
data type to the function.

src/drivers/driver_nl80211.c

index ac30562..edbe69b 100644 (file)
@@ -2316,7 +2316,7 @@ retry:
                        wpa_printf(MSG_DEBUG, "nl80211: Retry authentication "
                                   "after forced deauthentication");
                        wpa_driver_nl80211_deauthenticate(
-                               drv, params->bssid,
+                               bss, params->bssid,
                                WLAN_REASON_PREV_AUTH_NOT_VALID);
                        nlmsg_free(msg);
                        goto retry;