Parent: 390b93f90189917addc4e9c0a5670f1fe797e7ba
Author: Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2018-07-20 13:22:16
Tree: ee671ddfa18b6c75dce94c1629a62cfb3b8b076f
device: Fix loading devices without Service Changed CCC This patch provides fix for loading devices which were saved before support for storing Service Changed CCC was added (a0b886e26). Without this fix, after daemon is upgraded from pre-a0b886e26 to current version we do not indicate Service Changed to any previously bonded device since "loaded" CCC value is 0. This means that even if locla GATT database is changed, bonded peer can assume it did not change and continue to access structure which yields unexpected results and this is exactly what happens on iOS devices. With this patch, if "ServiceChanged" group (added by mentioned commit) does not exist in config file of a bonded device, we assume indications for Service Changed characteristic value were enabled by peer as per Core 5.0, Vol 3, Part G, 7.1: "This Characteristic Value shall be configured to be indicated, using the Client Characteristic Configuration descriptor by a client"
Diffstat
| M | src/device.c | | | 16 | ++++++++++++++++ |
1 files changed, 16 insertions(+), 0 deletions(-)