summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Pawlowski <jpawlowski@google.com>2016-06-14 12:45:59 -0700
committerJakub Pawlowski <jpawlowski@google.com>2016-06-14 12:47:34 -0700
commit7dde9350e61acf97b98e9078972548f07e6a9400 (patch)
tree6268e3ee3c618aa52f1544104aea59d8dea58d3c
parent86df5ad096224060eb5275e6b7c4a1d5552210ee (diff)
downloadlibhardware-7dde9350e61acf97b98e9078972548f07e6a9400.tar.gz
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
-rw-r--r--include/hardware/bt_common_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hardware/bt_common_types.h b/include/hardware/bt_common_types.h
index 77c845ba..01b52565 100644
--- a/include/hardware/bt_common_types.h
+++ b/include/hardware/bt_common_types.h
@@ -52,7 +52,7 @@ typedef enum
typedef struct
{
- uint8_t id;
+ uint16_t id;
bt_uuid_t uuid;
bt_gatt_db_attribute_type_t type;
uint16_t attribute_handle;