OSDN Git Service

Fix GATT Server disconnecting for no reason
authorJakub Pawlowski <jpawlowski@google.com>
Thu, 25 May 2017 16:09:12 +0000 (09:09 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Fri, 26 May 2017 02:23:34 +0000 (19:23 -0700)
commitce54c403203597ba92720f52d47d57189ae37de6
tree4058f9874e3fe1b4eaf4d376abdf8d1494005a22
parent04442a41e9d7efd32c1acda5cae60509535b2cc6
Fix GATT Server disconnecting for no reason

Connections created by GAP profile should be ephemeral, and not
interfere with the connection timeout.

When a device is bonded, listing services through DM would cause a
DM APP to create a connection, and later to disconnect. This causes
connection to timeout. In case a device was already connected, this
should not happen.

Bug: 34951749
Test: manual
Change-Id: Iad04fd9eed4c664f35131442e3f83a704497a067
(cherry picked from commit 16bb48b320cde54a1a06a525f4d9be1421689649)
bta/dm/bta_dm_act.cc
bta/gatt/bta_gattc_act.cc
bta/gatt/bta_gattc_api.cc
bta/gatt/bta_gattc_int.h
bta/hh/bta_hh_le.cc
bta/include/bta_gatt_api.h
stack/gap/gap_ble.cc