Commit: 7604a577c9d7bf15c9144b8154842ce277afec90
Parent: c6dea886985e37e2380166fe8a49494fa695e660
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-04-08 18:54:56
Tree: 08fa2d85c4800a45685c40383d539e20373d67e8

shared/gatt-db: Fix gatt_db_service_insert_characteristic gatt_db_service_insert_characteristic shall not attempt to insert the characteristic attribute handle on the next available index as there could be descriptors in between so this changes the way get_attribute_index calculates the index based on the given handle to properly skip indexes used by descriptors.

Diffstat

M monitor/att.c | 7 ++++- - -
M src/gatt-database.c | 7 ++++- - -
M src/settings.c | 3 ++-
M src/shared/gatt-client.c | 3 +++
M src/shared/gatt-db.c | 97 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M src/shared/gatt-db.h | 2 ++
M unit/test-gatt.c | 1 +

7 files changed, 74 insertions(+), 46 deletions(-)

View Full Diff | Patch