diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-09-30 16:39:41 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-09-30 16:43:12 +0200 |
commit | be00d6d2714b762a43bdcac89e920222d00499de (patch) | |
tree | d0a5b2f758a88c01538e7e594db546bc358e667d | |
parent | 881ab6a3fc4b74efa0c9a618c48ac90a7a56ed23 (diff) | |
download | connman-be00d6d2714b762a43bdcac89e920222d00499de.tar.gz connman-be00d6d2714b762a43bdcac89e920222d00499de.tar.bz2 connman-be00d6d2714b762a43bdcac89e920222d00499de.zip |
supplicant: No need for actively remove network upon disconnection
When being disconnected, ConnMan should just wait for wpa_supplicant scan
results instead of trying to be smart about if the disconnected AP is still
around or not.
wpa_supplicant will try to roam and run periodic scan for that purpose. If
the AP is missing after 2 scans, it's removed from the list, and ConnMan
then removes it from the enabled networks.
Fixes BMC#7730 BMC#7734
-rw-r--r-- | plugins/supplicant.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/plugins/supplicant.c b/plugins/supplicant.c index dc8444ae..115d2c8e 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -2229,15 +2229,6 @@ static void scanning(struct supplicant_task *task, DBusMessage *msg) task->scanning = TRUE; } -static gboolean delayed_scan(gpointer user_data) -{ - struct supplicant_task *task = user_data; - - supplicant_scan(task->device); - - return FALSE; -} - static void state_change(struct supplicant_task *task, DBusMessage *msg) { DBusError error; @@ -2338,13 +2329,7 @@ static void state_change(struct supplicant_task *task, DBusMessage *msg) task_connect(task); } else task->network = NULL; - } else { - if (task->state == WPA_DISCONNECTED) - g_timeout_add_seconds(10, delayed_scan, task); - - remove_network(task); } - break; default: |