OSDN Git Service

Fix missing GATT Characteristic from last service
authorJakub Pawlowski <jpawlowski@google.com>
Tue, 14 Jun 2016 19:23:44 +0000 (12:23 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Tue, 14 Jun 2016 23:06:51 +0000 (16:06 -0700)
commit6c81482c2ddf10ac3c2d948ed3b4f0a58faea55c
tree8d5abd7677bd1c32b5968e0ab5a30c22c137f65c
parentd407e1afcae357412dec57c8f26153ade57fcecb
Fix missing GATT Characteristic from last service

GATT Service is contained between start and end handle. If
characteristic definition is at end handle, and it's value definition is
after end handle, it will not be properly discovered. That's because we
use value_handle instead of attribute_handle to identify
characteristics.

As a workaround, increase service boundary if value is defined after
it's definition.

Bug: 29253825
Change-Id: Ib145aea4f5cf38a1fbb977c301136e16f8f900f7
(chery picked from commit 552e630435a68d8f51d458dccf8697c625cf1510)
bta/gatt/bta_gattc_cache.cc
bta/gatt/bta_gattc_int.h