device: Notify technology when a scan has started or stopped
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 1 Feb 2012 14:43:57 +0000 (16:43 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sat, 4 Feb 2012 00:15:35 +0000 (01:15 +0100)
src/device.c

index e191194..e7568f6 100644 (file)
@@ -837,6 +837,8 @@ int connman_device_set_scanning(struct connman_device *device,
        device->scanning = scanning;
 
        if (scanning == TRUE) {
+               __connman_technology_scan_started(device);
+
                reset_scan_trigger(device);
 
                g_hash_table_foreach(device->networks,
@@ -847,6 +849,8 @@ int connman_device_set_scanning(struct connman_device *device,
 
        __connman_device_cleanup_networks(device);
 
+       __connman_technology_scan_stopped(device);
+
        __connman_service_auto_connect();
 
        return 0;