From 8f45228761ad142238071611024f92a5f5b56037 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Thu, 21 Sep 2006 13:29:08 +0000 Subject: CSR workaround: sending DiscoveryCompleted when exiting from periodic inq mode and standard inq was active --- hcid/dbus.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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); } -- cgit