Commit: 22cf3b76d1fdc64ce9e19d599fa24eec40b701ee
Parent: 95b8a4ec80ee32a712646106d39435ecc41bf3f4
Author: Anderson Lizardo <anderson.lizardo@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-01-11 18:56:03
Tree: baeaed89be58d2d4d5edf3de358bd5377f07258b

attrib: Remove unnecessary checks for PDU length on ATT encoding Both userspace and kernel enforce a minimum ATT MTU of 23 octets, which is also used as minimum size for buffers passed to ATT encoding functions. Therefore, it is unnecessary to perform these checks on ATT requests that are guaranteed to fit into 23 octets. Also document ATT parameter lengths where a constant is being used for calculating the PDU length.

Diffstat

M attrib/att.c | 131 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

1 files changed, 46 insertions(+), 85 deletions(-)

View Full Diff | Patch