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 19:28:00 +0000 (12:28 -0700)
commit552e630435a68d8f51d458dccf8697c625cf1510
tree85f7a1f7c552b63adb996734fa0cef15c6b0c165
parent22fc38259f9fb9aa84a63ff6cad39d5e25de915c
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
bta/gatt/bta_gattc_cache.c
bta/gatt/bta_gattc_int.h