HID: Add support dynamic enabling/disabling hid services
This patch adds support for dynamic enabling and disabling og hd or
hh services based on registration of hid device app. When hid device
app would be registered, hid host service would be disabled, and
after that hid device service would be enabled and vice versa. At BT
on time, hid host service would be enabled by default.
Change-Id: Iba9db98a7cb598c6abe6af62767d973cc37137da
CRs-Fixed: 732779
diff --git a/btif/src/btif_dm.c b/btif/src/btif_dm.c
index 1823116..7b730bf 100644
--- a/btif/src/btif_dm.c
+++ b/btif/src/btif_dm.c
@@ -411,9 +411,12 @@
&prop_name) == BT_STATUS_SUCCESS)
{
BTIF_TRACE_DEBUG("%s: remote_cod = 0x%06x", __FUNCTION__, remote_cod);
- if ((remote_cod & 0x700) == cod)
+ if ((remote_cod & 0x700) == cod) {
+ BTIF_TRACE_DEBUG("%s: returning TRUE", __FUNCTION__);
return TRUE;
+ }
}
+ BTIF_TRACE_DEBUG("%s: returning FALSE", __FUNCTION__);
return FALSE;
}