OSDN Git Service
(root)
/
android-x86
/
system-bt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
babd23d
)
HIDH: Initialize the ctrl_cid after trigger l2cap disconnect
author
weichinweng
<weichinweng@google.com>
Wed, 21 Apr 2021 07:42:27 +0000
(15:42 +0800)
committer
weichinweng
<weichinweng@google.com>
Wed, 21 Apr 2021 07:42:27 +0000
(15:42 +0800)
Since the ctrl_cid doesn't initialize, the HIDH sm can't initialize.
Next time, can't correctly trigger connect and handle the ctrl_cid
connect request.
Bug:
184128916
Test: compile && disconnect/reconnect HID device
Tag: #feature
Change-Id: I7bafe8728726d3df1d0bc58c8bc5224260042365
stack/hid/hidh_conn.cc
patch
|
blob
|
history
diff --git
a/stack/hid/hidh_conn.cc
b/stack/hid/hidh_conn.cc
index
31a30a4
..
8f725bc
100644
(file)
--- a/
stack/hid/hidh_conn.cc
+++ b/
stack/hid/hidh_conn.cc
@@
-535,6
+535,7
@@
static void hidh_l2cif_disconnect(uint16_t l2cap_cid) {
if (p_hcon->ctrl_cid) {
HIDH_TRACE_EVENT("HID-Host Initiating L2CAP Ctrl disconnection");
L2CA_DisconnectReq(p_hcon->ctrl_cid);
+ p_hcon->ctrl_cid = 0;
}
}