diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-09-28 00:59:52 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-09-28 00:59:52 +0200 |
commit | c98264bf67baa934c3855b45118cec610da184c7 (patch) | |
tree | 77bec030889f4eee2524c9d79ce0232529dbfffe /plugins | |
parent | caa69229d14d300587789888714c0f9924adf11e (diff) | |
download | connman-c98264bf67baa934c3855b45118cec610da184c7.tar.gz connman-c98264bf67baa934c3855b45118cec610da184c7.tar.bz2 connman-c98264bf67baa934c3855b45118cec610da184c7.zip |
Set device scanning state to false from the scan callback
If scan fails, the scan callback is called.
When scan results are available, it is called as well.
In both cases, the device is no longer scanning when it's called.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wifi.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c index a5c10db4..8dafe9f5 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -231,12 +231,7 @@ static void scan_callback(int result, GSupplicantInterface *interface, DBG("result %d", result); - if (result < 0) { - connman_device_set_scanning(device, FALSE); - return; - } - - connman_device_set_scanning(device, TRUE); + connman_device_set_scanning(device, FALSE); } static int wifi_scan(struct connman_device *device) |