summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-02-01 16:43:57 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-02-04 01:15:35 +0100
commit5ccb2dd1b6c229a7d70d5ac11234571b15c2df0b (patch)
treec6e3c8c1afba020da6eeba5216801c30b234fc3c /src/device.c
parent204217ff836c16c8056ff540f137f6470a768258 (diff)
downloadconnman-5ccb2dd1b6c229a7d70d5ac11234571b15c2df0b.tar.gz
connman-5ccb2dd1b6c229a7d70d5ac11234571b15c2df0b.tar.bz2
connman-5ccb2dd1b6c229a7d70d5ac11234571b15c2df0b.zip
device: Notify technology when a scan has started or stopped
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index e191194c..e7568f64 100644
--- a/src/device.c
+++ b/src/device.c
@@ -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;