Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bluetooth: GATT: Fix assuming writes to CCC will always contain 2 bytes
Although unlikely it is possible that a remote may attempt to send just 1 byte as the write request allows to do that: 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.' Fixes zephyrproject-rtos#16734 Signed-off-by: Luiz Augusto von Dentz <[email protected]>
- Loading branch information