Commit: 93b933ff3de1b7694732529b5dbbeb66afca942a
Parent: ee676b8615ae64132564e86babbab61c14481ce2
Author: Romain Izard <romain.izard.pro@gmail.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2015-01-26 17:49:11
Tree: 55d191961a206ea8cb2e30de5e1ccf1b69607f32

shared/gatt-server: Fix notification & indication packet size For both Handle Value Notification & Handle Value Indication, the size of the payload is limited to (ATT_MTU - 3) bytes, as indicated in Vol 3, part F, section 3.4.7.1 & 3.4.7.2 of the Bluetooth 4.2 specification. In the function, the first reserved byte is implicit and corresponds to the opcode, while the 2 next bytes are explicit and contain the attribute handle. Ensure that the truncation of large payloads is done with the correct value.

Diffstat

M src/shared/gatt-server.c | 4 ++- -

1 files changed, 2 insertions(+), 2 deletions(-)

View Full Diff | Patch