summaryrefslogtreecommitdiff
path: root/system/common/metrics.cc
diff options
context:
space:
mode:
author Łukasz Rymanowski <rlukasz@google.com> 2024-04-19 12:57:42 +0000
committer Łukasz Rymanowski <rlukasz@google.com> 2024-04-19 13:07:19 +0000
commit27a9748eb26cd77c77cdcb0df564b051df48546d (patch)
tree588eb830eccd2d12ede552405045f0cd127a4009 /system/common/metrics.cc
parent6460734da3d3f1c342204cc119bdd217d16efcc3 (diff)
gatt: Fix handling GATT connect timeout
When there is a timeout on create connection, all gatt clients interested in the connection shall be notified about TIMEOUT. With the recent changes improving creating multiple connections, there is no TCB allocated for each connection we want to create. Therefore, there is no unique conn_id allocated for the p_clcb. That means, when notifing about timeout, stack shell not generate CONN_ID using tcb_idx=0 as it could be already use by other device. This could lead to situation that GATT thinks that other connected devices just got disconnected. Bug: 335816515 Bug: 325595120 Test: atest pts-bot:GATT Change-Id: Ibf013b196caf38d46e81d6b97610060872697176
Diffstat (limited to 'system/common/metrics.cc')
0 files changed, 0 insertions, 0 deletions