diff options
author | Hemant Gupta <hemantg@codeaurora.org> | 2013-11-11 12:33:44 +0530 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:21:27 -0600 |
commit | 94c15ec1dc9776b16c2e9d684610818959fcf541 (patch) | |
tree | 73ae22ddb7647874791e1a2b5298cda1a833890f /btif/src/btif_hh.c | |
parent | e17afaa16705fafb5bcdd4c48da31599baf77464 (diff) | |
download | android_system_bt-94c15ec1dc9776b16c2e9d684610818959fcf541.tar.gz android_system_bt-94c15ec1dc9776b16c2e9d684610818959fcf541.tar.bz2 android_system_bt-94c15ec1dc9776b16c2e9d684610818959fcf541.zip |
Bluetooth: Add support for HID Device Role (2/4)
This patch adds support for HID Device role in bluedroid stack allowing
DUT to be used as Keyboard or Mouse.
Change-Id: I45b581a54f6c7bbc1f25226715a7ea23e34255c0
CRs-Fixed: 573086
Diffstat (limited to 'btif/src/btif_hh.c')
-rw-r--r-- | btif/src/btif_hh.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/btif/src/btif_hh.c b/btif/src/btif_hh.c index a58d4a9f2..4b484cb32 100644 --- a/btif/src/btif_hh.c +++ b/btif/src/btif_hh.c @@ -1727,6 +1727,13 @@ static void cleanup( void ) BTIF_TRACE_EVENT("%s", __FUNCTION__); btif_hh_device_t *p_dev; int i; + + if (bt_hh_callbacks) + { + btif_disable_service(BTA_HID_SERVICE_ID); + bt_hh_callbacks = NULL; + } + if (btif_hh_cb.status == BTIF_HH_DISABLED) { BTIF_TRACE_WARNING("%s: HH disabling or disabled already, status = %d", __FUNCTION__, btif_hh_cb.status); return; @@ -1744,13 +1751,6 @@ static void cleanup( void ) p_dev->hh_poll_thread_id = -1; } } - - if (bt_hh_callbacks) - { - btif_disable_service(BTA_HID_SERVICE_ID); - bt_hh_callbacks = NULL; - } - } static const bthh_interface_t bthhInterface = { |