Browse Source

Fix get_interfaces() driver call to use correct drv_priv data

Jouni Malinen 15 years ago
parent
commit
5fbc1f279b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wpa_supplicant/ctrl_iface.c

+ 1 - 1
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;