diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 9db5f75e8..19fea29fd 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -2032,7 +2032,7 @@ static int wpa_supplicant_global_iface_list(struct wpa_global *global, struct wpa_driver_ops *drv = wpa_drivers[i]; if (drv->get_interfaces == NULL) continue; - tmp = drv->get_interfaces(global->drv_priv); + tmp = drv->get_interfaces(global->drv_priv[i]); if (tmp == NULL) continue;