Commit: cbe4144dea6fde87e13016c2861c9ba5f75f716f
Parent: 7e9816dd8c219f26f52fcb46fa13ecddfcf2d526
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-06-03 22:37:23
Tree: d058a6fe9eb7cd94a5ad71e795a0d5663853fe32

set: Attempt to use existing set gatt-db Most sets should be clone of each other, or at least very similar, so this attempts to clone the existing gatt-db of the first member found when connecting new sets, this substantially speed up the process of bonding sets if their database matches which is something that is currently ranging from 20-30 seconds depending on the manufacturer and with this changes it cuts 5-10 seconds by bypassing discovery all procedure of other members. If the dbs don't really match bt_gatt_client instance will attempt to rediscover the ranges that don't match.

Diffstat

M src/device.c | 21 +++++++++++++++++++++
M src/device.h | 1 +
M src/set.c | 22 ++++++++++++++++++++- -
M src/shared/gatt-db.c | 4 ++- -

4 files changed, 44 insertions(+), 4 deletions(-)

View Full Diff | Patch