OSDN Git Service
(root)
/
android-x86
/
system-bt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22fc382
)
Use UINT16 for GATT attribute id field
author
Jakub Pawlowski
<jpawlowski@google.com>
Tue, 14 Jun 2016 19:47:52 +0000
(12:47 -0700)
committer
Jakub 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
patch
|
blob
|
history
diff --git
a/bta/gatt/bta_gattc_cache.c
b/bta/gatt/bta_gattc_cache.c
index
aaff813
..
03545ca
100644
(file)
--- a/
bta/gatt/bta_gattc_cache.c
+++ b/
bta/gatt/bta_gattc_cache.c
@@
-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,
- UINT
8
id, tBT_UUID uuid, UINT8 prop)
+ UINT
16
id, tBT_UUID uuid, UINT8 prop)
{
p_attr->type = type;
p_attr->attribute_handle = att_handle;