summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2006-09-21 13:29:08 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2006-09-21 13:29:08 +0000
commit8f45228761ad142238071611024f92a5f5b56037 (patch)
tree7a49b3043076c64ad8f0ed774c443ee7a18b3010 /hcid
parentf3658d422b593a568743b7e9ff3a84f82413c7aa (diff)
CSR workaround: sending DiscoveryCompleted when exiting from periodic inq mode and standard inq was active
Diffstat (limited to 'hcid')
-rw-r--r--hcid/dbus.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hcid/dbus.c b/hcid/dbus.c
index ca419ca3..9c11ab09 100644
--- a/hcid/dbus.c
+++ b/hcid/dbus.c
@@ -1165,6 +1165,14 @@ void hcid_dbus_periodic_inquiry_exit(bdaddr_t *local, uint8_t status)
"PeriodicDiscoveryStopped");
send_reply_and_unref(connection, message);
+ /* workaround: inquiry completed is not sent when exiting from periodic inquiry */
+ if (pdata->disc_active) {
+ message = dbus_message_new_signal(path, ADAPTER_INTERFACE,
+ "DiscoveryCompleted");
+ send_reply_and_unref(connection, message);
+
+ pdata->disc_active = 0;
+ }
done:
bt_free(local_addr);
}