summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorMohamed Abbas <mohamed.abbas@intel.com>2011-09-13 09:55:14 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2011-09-13 10:53:33 +0200
commitff76ad35726a05cd5bf66ab09c2681f3bee8912d (patch)
treef9c9622cadc47fa832a390dcdb3596d074d1b0f0 /src/device.c
parentf5af5715d88a0525e6bc6323d196bd78680e67d1 (diff)
downloadconnman-ff76ad35726a05cd5bf66ab09c2681f3bee8912d.tar.gz
connman-ff76ad35726a05cd5bf66ab09c2681f3bee8912d.tar.bz2
connman-ff76ad35726a05cd5bf66ab09c2681f3bee8912d.zip
wifi: Add support to multi scan type
Allow multi scan type for fast connect. Scanning request removed from interface_added() because it is already called in connman_device_set_powered() so no need to call it again immediately (fix by Jukka Rissanen <jukka.rissanen@linux.intel.com>)
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/device.c b/src/device.c
index 28ecfbde..b4bf2846 100644
--- a/src/device.c
+++ b/src/device.c
@@ -688,7 +688,9 @@ int connman_device_set_powered(struct connman_device *device,
reset_scan_trigger(device);
- if (device->driver && device->driver->scan)
+ if (device->driver && device->driver->scan_fast)
+ device->driver->scan_fast(device);
+ else if (device->driver && device->driver->scan)
device->driver->scan(device);
return 0;