Set WiFi task scanning flag when receiving a Scanning event
authorSamuel Ortiz <sameo@linux.intel.com>
Thu, 30 Sep 2010 14:33:40 +0000 (16:33 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 30 Sep 2010 14:36:10 +0000 (16:36 +0200)
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.

plugins/supplicant.c

index defe5f1..dc8444a 100644 (file)
@@ -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)