OSDN Git Service
(root)
/
android-x86
/
hardware-libhardware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86df5ad
)
Use UINT16 for GATT attribute id field
author
Jakub Pawlowski
<jpawlowski@google.com>
Tue, 14 Jun 2016 19:45:59 +0000
(12:45 -0700)
committer
Jakub 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
patch
|
blob
|
history
diff --git
a/include/hardware/bt_common_types.h
b/include/hardware/bt_common_types.h
index
77c845b
..
01b5256
100644
(file)
--- a/
include/hardware/bt_common_types.h
+++ b/
include/hardware/bt_common_types.h
@@
-52,7
+52,7
@@
typedef enum
typedef struct
{
- uint
8
_t id;
+ uint
16
_t id;
bt_uuid_t uuid;
bt_gatt_db_attribute_type_t type;
uint16_t attribute_handle;