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>
Thu, 25 May 2017 21:13:52 +0000 (21:13 +0000)
commit16bb48b320cde54a1a06a525f4d9be1421689649
treedc19dba8c99779ba13b91819ef11426778f19c82
parent63e8f19255cccf42c18432acdc60138ebf2e9a41
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
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