From 74f2b9106f78c9cd84cf44c03771fc2580d056b8 Mon Sep 17 00:00:00 2001 From: Leena Gunda Date: Thu, 21 Oct 2010 23:29:21 +0200 Subject: wifi: Search for networks based on their identifier --- plugins/wifi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/wifi.c b/plugins/wifi.c index 8dafe9f5..a159a9df 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -410,7 +410,7 @@ static void network_added(GSupplicantNetwork *supplicant_network) struct connman_network *network; GSupplicantInterface *interface; struct wifi_data *wifi; - const char *name, *path, *identifier, *mode, *security, *group; + const char *name, *identifier, *mode, *security, *group; const unsigned char *ssid; unsigned int ssid_len; @@ -419,7 +419,6 @@ static void network_added(GSupplicantNetwork *supplicant_network) interface = g_supplicant_network_get_interface(supplicant_network); wifi = g_supplicant_interface_get_data(interface); name = g_supplicant_network_get_name(supplicant_network); - path = g_supplicant_network_get_path(supplicant_network); identifier = g_supplicant_network_get_identifier(supplicant_network); mode = g_supplicant_network_get_mode(supplicant_network); security = g_supplicant_network_get_security(supplicant_network); @@ -430,7 +429,7 @@ static void network_added(GSupplicantNetwork *supplicant_network) ssid = g_supplicant_network_get_ssid(supplicant_network, &ssid_len); - network = connman_device_get_network(wifi->device, path); + network = connman_device_get_network(wifi->device, identifier); if (network == NULL) { network = connman_network_create(identifier, -- cgit v1.2.3