OSDN Git Service

Use attribute handle instead of id in GATT cache
authorJakub Pawlowski <jpawlowski@google.com>
Wed, 2 Mar 2016 22:47:55 +0000 (14:47 -0800)
committerJakub Pawlowski <jpawlowski@google.com>
Wed, 9 Mar 2016 04:52:37 +0000 (20:52 -0800)
commit29feba05f64b8f3bd9897ef6ed1cadc837ee0f77
tree60f8e7ed7456d45db14455f47aeecafe7db626c5
parent8ca5fe25f8cab5fcb0b762916c4525c56e0d51da
Use attribute handle instead of id in GATT cache

Currently we generate an id for each GATT attribute. Those ids
are used to differentiate between attributes that have the same
UUID. We need to get rid of those ids because it won't work with
partial GATT database updates due to "service change"
notifications. Instead, attribute handles, which are unique
across the whole GATT database will be used.

This is first patch in series to achieve that. It gets rid
of id generation, and just assigns handle in place of ids inside
of gatt cache. Upcoming patches will change the GATT cache API
and eventually get rid of "id" completly.

Bug: 27455533
Change-Id: I74c10872ecc223329b8ac7fef4085963bf272624
bta/gatt/bta_gattc_cache.c
bta/gatt/bta_gattc_int.h
bta/hh/bta_hh_le.c