summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-02-01 16:43:53 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-02-04 01:15:35 +0100
commitaa487b5198eb2286db41b0d9b45e341252f675c5 (patch)
tree09935888eda647ee20f8e6f3e4bc841a93b78d17
parentbc61a82c641955f0926cf7644c1f9bbc22dcf13f (diff)
downloadconnman-aa487b5198eb2286db41b0d9b45e341252f675c5.tar.gz
connman-aa487b5198eb2286db41b0d9b45e341252f675c5.tar.bz2
connman-aa487b5198eb2286db41b0d9b45e341252f675c5.zip
wifi: Always set scanning to FALSE in scan callback
By always setting scanning to FALSE in the scan callback, information for a stopped scan will be processed in device.c.
-rw-r--r--plugins/wifi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 0860938e..aeeb912e 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -301,8 +301,8 @@ static void scan_callback(int result, GSupplicantInterface *interface,
if (result < 0)
connman_device_reset_scanning(device);
- else
- connman_device_set_scanning(device, FALSE);
+
+ connman_device_set_scanning(device, FALSE);
connman_device_unref(device);
}