Commit: e60a6b7d9d0fa55fda5cd0457f6c763078949d87
Parent: afe196816af33c1e6c0f0d5fd09ebf8e796830ce
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2019-09-11 16:34:06
Tree: ea02ecb94ad7046d80a0f0da41e6162c97da0f86

gatt: Fix assuming writes to CCC will always contain 2 bytes The spec actually allows writing just 1 byte: BLUETOOTH CORE SPECIFICATION Version 5.1 | Vol 3, Part F page 2320: 'If the attribute value has a fixed length and the Attribute Value parameter length is less than or equal to the length of the attribute value, the octets of the attribute value parameter length shall be written; all other octets in this attribute value shall be unchanged.'

Diffstat

M src/gatt-database.c | 33 ++++++++++++++++++- - - - - - - - - - - - - - -

1 files changed, 18 insertions(+), 15 deletions(-)

View Full Diff | Patch