OSDN Git Service

Fix GATT Server disconnecting for no reason
authorJakub Pawlowski <jpawlowski@google.com>
Wed, 24 May 2017 23:15:21 +0000 (16:15 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Wed, 24 May 2017 23:23:57 +0000 (16:23 -0700)
commitb69edd55ffe953d4f71f4a948e3feb2243223980
tree8aacd37bc22701f55fc8b6604f6984ca800294e2
parent722ce12babbd3d1e814f6e704860699a0b726e4f
Fix GATT Server disconnecting for no reason

When two devices are bonded, even if the device is supposed to act just
as a GATT Server, service discovery is performed. Doing "read by type"
should not trigger connection timeout, or disconnection, as the server
should wait for the client to finish connection.

Please note that it does not GATT Client behaviour, as they manage the
connection timeout through L2CA_SendFixedChnlData called on each data
packet.

Bug: 34951749
Test: manual
Change-Id: If53cf63dc204238a60839497992c870b1b39aa60
stack/gap/gap_ble.cc