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 00:28:23 +0000 (16:28 -0800)
commitbc5d65496d7dc9d87d4fe3e3c92dadb043559786
tree82da0de1c2355f6848256631218012e36e82a614
parent22aaded594fab42d5b30354a94c51d0b8666089b
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