diff options
author | Mohamed Abbas <mabbas@linux.intel.com> | 2010-12-22 11:58:02 -0800 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-12-23 12:45:27 +0100 |
commit | be65ac7ada64530b5d9049bf23a89dfbd644ebd1 (patch) | |
tree | 05b2e3a1d52f38c79bd3e7b6eb8bf4fbe4490403 /src/device.c | |
parent | 43e6e141ee352e77fdb894b918f280024785f3df (diff) | |
download | connman-be65ac7ada64530b5d9049bf23a89dfbd644ebd1.tar.gz connman-be65ac7ada64530b5d9049bf23a89dfbd644ebd1.tar.bz2 connman-be65ac7ada64530b5d9049bf23a89dfbd644ebd1.zip |
service: Avoid autoconnect from scan
If we are scanning then don't try to run autoconnect while
we are adding network from scan, at the end of scan auto
connect will be called.
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c index 957be7c1..c71529ef 100644 --- a/src/device.c +++ b/src/device.c @@ -815,6 +815,11 @@ void __connman_device_cleanup_networks(struct connman_device *device) remove_unavailable_network, NULL); } +connman_bool_t __connman_device_scanning(struct connman_device *device) +{ + return device->scanning; +} + /** * connman_device_set_scanning: * @device: device structure |