Reset the scanning flag to indicate the end of a scan period
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 16 Jul 2009 08:50:09 +0000 (10:50 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 16 Jul 2009 08:50:09 +0000 (10:50 +0200)
plugins/supplicant.c

index 4c6f8d7..67a0161 100644 (file)
@@ -1356,8 +1356,7 @@ static void get_properties(struct supplicant_task *task)
        return;
 
 noscan:
-       if (task->noscan == FALSE)
-               connman_device_set_scanning(task->device, FALSE);
+       connman_device_set_scanning(task->device, FALSE);
 }
 
 static void scan_results_reply(DBusPendingCall *call, void *user_data)
@@ -1414,8 +1413,7 @@ done:
        dbus_message_unref(reply);
 
 noscan:
-       if (task->noscan == FALSE)
-               connman_device_set_scanning(task->device, FALSE);
+       connman_device_set_scanning(task->device, FALSE);
 }
 
 static void scan_results_available(struct supplicant_task *task)