OSDN Git Service

Cleanup GATT cache when remote device is disconnected
authorJakub Pawlowski <jpawlowski@google.com>
Tue, 29 Nov 2016 19:45:09 +0000 (11:45 -0800)
committerJakub Pawlowski <jpawlowski@google.com>
Tue, 29 Nov 2016 23:59:50 +0000 (15:59 -0800)
commita86618a954d1ac72b70338982352895f6e6187df
tree5c1c2908115fc79ecc0a13ce295befc5fa981665
parentf74a382dcddd306317d35c4c926d37d03dea5dea
Cleanup GATT cache when remote device is disconnected

According to Bluetooth spec, GATT cache should not be persisted between
reconnections for unbonded devices. Bonded devices store the cache on
the disk and will read it on reconnection.

Bug: 33123476
Test: sl4a GattReadTest
Change-Id: If2ca53c7b22a346e7236514ea7b461695c923f74
(cherry picked from commit 9580a30918c256cf20fdb68823115864155e6243)
bta/gatt/bta_gattc_utils.c