OSDN Git Service

Use UINT16 for GATT attribute id field
authorJakub Pawlowski <jpawlowski@google.com>
Tue, 14 Jun 2016 19:45:59 +0000 (12:45 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Tue, 14 Jun 2016 19:47:34 +0000 (12:47 -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: I75c0c993a987bf0a48e910fa3c0f41f9d876bec6

include/hardware/bt_common_types.h

index 77c845b..01b5256 100644 (file)
@@ -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;