[PATCH v2 5/6] device: Notify technology when a scan has started or stopped

patrik.flykt at linux.intel.com patrik.flykt at linux.intel.com
Wed Feb 1 06:43:57 PST 2012


From: Patrik Flykt <patrik.flykt at linux.intel.com>

---
v2: moved check for number of devices scanning to technology.c

 src/device.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/device.c b/src/device.c
index e191194..e7568f6 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;
-- 
1.7.2.5




More information about the connman mailing list