summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurav Babu <saurav.babu@samsung.com>2016-11-17 11:30:40 (GMT)
committerSaurav Babu <saurav.babu@samsung.com>2016-11-17 11:30:40 (GMT)
commit3bc3207f6835cd1291be6afe051994aa2fb814e6 (patch)
treecade14495a7acf202ee05f7535d2f2916c2639f4
parentd91254275f7dc9a8aa1cf4155ab90d4e8428f40f (diff)
downloadconnman-3bc3207f6835cd1291be6afe051994aa2fb814e6.zip
connman-3bc3207f6835cd1291be6afe051994aa2fb814e6.tar.gz
connman-3bc3207f6835cd1291be6afe051994aa2fb814e6.tar.bz2
[connman] Add new ScanDone signal for notification to upper layerrefs/changes/05/98505/1
Change-Id: I1c6f5d7a162ef7da9942ae41cdbbf64017b37aab Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
-rwxr-xr-xsrc/technology.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/technology.c b/src/technology.c
index 9e00a29..d5d4a40 100755
--- a/src/technology.c
+++ b/src/technology.c
@@ -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,