aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-11-28 16:11:16 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-28 16:11:16 (GMT)
commit8a5ab9f5e56cd2f5781c2d92f41495e60d544780 (patch)
tree700c2284f1aa367e0b75e297cf5fe39c52ab11af /wpa_supplicant/driver_i.h
parented45947e9bd86b512a36059f444c56d12827aee4 (diff)
downloadhostap-8a5ab9f5e56cd2f5781c2d92f41495e60d544780.zip
hostap-8a5ab9f5e56cd2f5781c2d92f41495e60d544780.tar.gz
hostap-8a5ab9f5e56cd2f5781c2d92f41495e60d544780.tar.bz2
Fix init2() driver_ops to get the correct global driver context
Need to provide the private driver context, not the wpa_supplicant global context, in init2() call.
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 12161b2..7f20fe0 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -22,7 +22,8 @@ static inline void * wpa_drv_init(struct wpa_supplicant *wpa_s,
const char *ifname)
{
if (wpa_s->driver->init2)
- return wpa_s->driver->init2(wpa_s, ifname, wpa_s->global);
+ return wpa_s->driver->init2(wpa_s, ifname,
+ wpa_s->global_drv_priv);
if (wpa_s->driver->init) {
return wpa_s->driver->init(wpa_s, ifname);
}