[connman] Add new ScanDone signal for notification to upper layer 05/98505/1
authorSaurav Babu <saurav.babu@samsung.com>
Thu, 17 Nov 2016 11:30:40 +0000 (17:00 +0530)
committerSaurav Babu <saurav.babu@samsung.com>
Thu, 17 Nov 2016 11:30:40 +0000 (17:00 +0530)
Change-Id: I1c6f5d7a162ef7da9942ae41cdbbf64017b37aab
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
src/technology.c

index 9e00a2934d93f3dbcf9f66d7d771ed6f9a8c6912..d5d4a40840bff23f793cb35635a2876cac67c367 100755 (executable)
@@ -1063,8 +1063,23 @@ void __connman_technology_scan_stopped(struct connman_device *device,
                        count += 1;
        }
 
+#if defined TIZEN_EXT
+       if (count == 0) {
+               DBusMessage *signal;
+
+               signal = dbus_message_new_signal(CONNMAN_MANAGER_PATH,
+                                                                               CONNMAN_MANAGER_INTERFACE, "ScanDone");
+               if (!signal)
+                       return;
+
+               dbus_connection_send(connection, signal, NULL);
+               dbus_message_unref(signal);
+               reply_scan_pending(technology, 0);
+       }
+#else
        if (count == 0)
                reply_scan_pending(technology, 0);
+#endif
 }
 
 void __connman_technology_notify_regdom_by_device(struct connman_device *device,