wifi: Add support to multi scan type
[framework/connectivity/connman.git] / src / device.c
index 28ecfbd..b4bf284 100644 (file)
@@ -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;