Use UINT16 for GATT attribute id field
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: I75c0c993a987bf0a48e910fa3c0f41f9d876bec6
(cherry picked from commit 7dde9350e61acf97b98e9078972548f07e6a9400)
diff --git a/include/hardware/bt_common_types.h b/include/hardware/bt_common_types.h
index 77c845b..01b5256 100644
--- a/include/hardware/bt_common_types.h
+++ b/include/hardware/bt_common_types.h
@@ -52,7 +52,7 @@
typedef struct
{
- uint8_t id;
+ uint16_t id;
bt_uuid_t uuid;
bt_gatt_db_attribute_type_t type;
uint16_t attribute_handle;