OSDN Git Service

Use UINT16 for GATT attribute id field
authorJakub Pawlowski <jpawlowski@google.com>
Tue, 14 Jun 2016 19:47:52 +0000 (12:47 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Tue, 14 Jun 2016 19:48:44 +0000 (12:48 -0700)
Id field is equal to attribute handle, so it must be 16bits.
Otherwise only piece of GATT database can be used.

Bug: 29253825
Change-Id: Ia88e3ad3eb96ca8e97349aa5e852e66c57072b49

bta/gatt/bta_gattc_cache.c

index aaff813..03545ca 100644 (file)
@@ -1101,7 +1101,7 @@ void bta_gattc_fill_gatt_db_el(btgatt_db_element_t *p_attr,
                                bt_gatt_db_attribute_type_t type,
                                UINT16 att_handle,
                                UINT16 s_handle, UINT16 e_handle,
-                               UINT8 id, tBT_UUID uuid, UINT8 prop)
+                               UINT16 id, tBT_UUID uuid, UINT8 prop)
 {
     p_attr->type             = type;
     p_attr->attribute_handle = att_handle;