summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-09-30 16:33:40 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-09-30 16:36:10 +0200
commit881ab6a3fc4b74efa0c9a618c48ac90a7a56ed23 (patch)
treeaa77c315de523d5c6599792326fb83f01cccb8d7
parentfdc79b960c47656d7666fac6ab9d4656ec5fe83e (diff)
downloadconnman-881ab6a3fc4b74efa0c9a618c48ac90a7a56ed23.tar.gz
connman-881ab6a3fc4b74efa0c9a618c48ac90a7a56ed23.tar.bz2
connman-881ab6a3fc4b74efa0c9a618c48ac90a7a56ed23.zip
Set WiFi task scanning flag when receiving a Scanning event
wpa_supplicant can start scanning without ConnMan telling it to do so (in the roaming case for example), and thus the task scanning state should be updated accordingly in that case. Without this fix the device network list is not refreshed appropriately.
-rw-r--r--plugins/supplicant.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/supplicant.c b/plugins/supplicant.c
index defe5f1b..dc8444ae 100644
--- a/plugins/supplicant.c
+++ b/plugins/supplicant.c
@@ -2224,6 +2224,9 @@ static void scanning(struct supplicant_task *task, DBusMessage *msg)
connman_info("%s scanning %s", task->ifname,
scanning == TRUE ? "started" : "finished");
+
+ if (scanning == TRUE)
+ task->scanning = TRUE;
}
static gboolean delayed_scan(gpointer user_data)