summaryrefslogtreecommitdiffstats
path: root/stack/hid/hidh_api.c
diff options
context:
space:
mode:
authorCasper Bonde <c.bonde@samsung.com>2014-10-03 10:01:36 +0200
committerAndre Eisenbach <eisenbach@google.com>2015-07-27 17:48:43 +0000
commit760aa99b0f1fb7830dd5ff23ec8f5c5630b15989 (patch)
tree7f82585a46c0d4f62a3463bee14ceb986b224599 /stack/hid/hidh_api.c
parentc6137426081fc55d8c94cd0e6b55cd0d0a52f12d (diff)
downloadandroid_system_bt-760aa99b0f1fb7830dd5ff23ec8f5c5630b15989.tar.gz
android_system_bt-760aa99b0f1fb7830dd5ff23ec8f5c5630b15989.tar.bz2
android_system_bt-760aa99b0f1fb7830dd5ff23ec8f5c5630b15989.zip
Unpair HID device cleanup
When unparing HID devices, the attr_mask was not cleared. By not clearing this data, some HID device will never be able to connect again. (E.g. the Apple Magic Mouse) Bug: 15566403 Change-Id: Ic80909dcecdf48d967c1a936b31554653761fa42 Signed-off-by: Casper Bonde <c.bonde@samsung.com>
Diffstat (limited to 'stack/hid/hidh_api.c')
-rw-r--r--stack/hid/hidh_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stack/hid/hidh_api.c b/stack/hid/hidh_api.c
index b0c3aa527..2f919f495 100644
--- a/stack/hid/hidh_api.c
+++ b/stack/hid/hidh_api.c
@@ -397,7 +397,7 @@ tHID_STATUS HID_HostRemoveDev ( UINT8 dev_handle )
hh_cb.devices[dev_handle].in_use = FALSE;
hh_cb.devices[dev_handle].conn.conn_state = HID_CONN_STATE_UNUSED;
hh_cb.devices[dev_handle].conn.ctrl_cid = hh_cb.devices[dev_handle].conn.intr_cid = 0;
-
+ hh_cb.devices[dev_handle].attr_mask = 0;
return HID_SUCCESS;
}