diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-04-16 11:52:09 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-04-16 11:52:09 +0200 |
commit | 585690f502940f4dd5db504055e47b9e0c7ca0f9 (patch) | |
tree | 09976f0fb3acc4b7d7e425381905fbd82607e0d5 | |
parent | 6635afadae037049082dd703bb5ca69043457dbc (diff) | |
download | connman-585690f502940f4dd5db504055e47b9e0c7ca0f9.tar.gz connman-585690f502940f4dd5db504055e47b9e0c7ca0f9.tar.bz2 connman-585690f502940f4dd5db504055e47b9e0c7ca0f9.zip |
Remove supplicant and device scanning state cleaning
With wpa_supplicant 0.7, there is no need to handle potential issues with scan
results not being sent. Also, the state change is sent before the actual scan
results, so marking all networks available at that point is misleading.
-rw-r--r-- | include/device.h | 1 | ||||
-rw-r--r-- | plugins/supplicant.c | 5 | ||||
-rw-r--r-- | src/device.c | 18 |
3 files changed, 0 insertions, 24 deletions
diff --git a/include/device.h b/include/device.h index bdaf2b07..b4bb2973 100644 --- a/include/device.h +++ b/include/device.h @@ -79,7 +79,6 @@ int connman_device_set_powered(struct connman_device *device, connman_bool_t powered); int connman_device_set_scanning(struct connman_device *device, connman_bool_t scanning); -void connman_device_cleanup_scanning(struct connman_device *device); int connman_device_set_disconnected(struct connman_device *device, connman_bool_t disconnected); diff --git a/plugins/supplicant.c b/plugins/supplicant.c index bdb21cd4..62aac112 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -1876,11 +1876,6 @@ static void state_change(struct supplicant_task *task, DBusMessage *msg) if (state == WPA_INVALID) return; - if (task->scanning == TRUE && state != WPA_SCANNING) { - connman_device_cleanup_scanning(task->device); - task->scanning = FALSE; - } - prevstate = task->state; task->state = state; diff --git a/src/device.c b/src/device.c index 75561c9f..619fe5e3 100644 --- a/src/device.c +++ b/src/device.c @@ -1184,24 +1184,6 @@ static void scanning_changed(struct connman_device *device) DBUS_TYPE_BOOLEAN, &device->scanning); } -static void mark_network_available(gpointer key, gpointer value, - gpointer user_data) -{ - struct connman_network *network = value; - - connman_network_set_available(network, TRUE); -} - -void connman_device_cleanup_scanning(struct connman_device *device) -{ - device->scanning = FALSE; - - scanning_changed(device); - - g_hash_table_foreach(device->networks, - mark_network_available, NULL); -} - /** * connman_device_set_scanning: * @device: device structure |