aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_supplicant.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-03-15 13:02:08 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-22 15:41:37 (GMT)
commit45e3fc72c61a61dbd1e2fc3fd9fd7bf853b9f5fe (patch)
treeb677bf535bb04be1ee42a7fcce53613ded9104cd /wpa_supplicant/wpa_supplicant.c
parent90377029c6805b339dfa3307263118986295796a (diff)
downloadhostap-45e3fc72c61a61dbd1e2fc3fd9fd7bf853b9f5fe.zip
hostap-45e3fc72c61a61dbd1e2fc3fd9fd7bf853b9f5fe.tar.gz
hostap-45e3fc72c61a61dbd1e2fc3fd9fd7bf853b9f5fe.tar.bz2
Find correct driver for interface additions/removals
Interface additions/removals are not guaranteed to be for the driver listening to the kernel events. As such, send the events to wpa_supplicant_event_global() which can then pick the correct interface registered with wpa_supplicant to send the event to. Signed-off-by: Roy Marples <roy@marples.name>
Diffstat (limited to 'wpa_supplicant/wpa_supplicant.c')
-rw-r--r--wpa_supplicant/wpa_supplicant.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index 136cb58..7b43600 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -3143,7 +3143,7 @@ static int select_driver(struct wpa_supplicant *wpa_s, int i)
struct wpa_global *global = wpa_s->global;
if (wpa_drivers[i]->global_init && global->drv_priv[i] == NULL) {
- global->drv_priv[i] = wpa_drivers[i]->global_init();
+ global->drv_priv[i] = wpa_drivers[i]->global_init(global);
if (global->drv_priv[i] == NULL) {
wpa_printf(MSG_ERROR, "Failed to initialize driver "
"'%s'", wpa_drivers[i]->name);