From: Jouni Malinen Date: Sun, 7 Mar 2010 19:29:34 +0000 (+0200) Subject: nl80211: Fix driver context pointer for auth-failure-case X-Git-Tag: hostap_0_7_2~146 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5205c4f98a5b4242e8cddaf36be0c17f3ffc0e80;p=thirdparty%2Fhostap.git nl80211: Fix driver context pointer for auth-failure-case 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. --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index ac30562b9..edbe69bf7 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -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;