Skip to content

Commit d43cb28

Browse files
finikorgGustavo F. Padovan
authored andcommitted
Bluetooth: EWS: define L2CAP header sizes
Adds definitins for L2CAP header sizes to be uses when calculating payload size instead of magic numbers. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
1 parent e4ca6d9 commit d43cb28

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎include/net/bluetooth/l2cap.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ struct l2cap_hdr {
162162
__le16 cid;
163163
} __packed;
164164
#define L2CAP_HDR_SIZE 4
165+
#define L2CAP_ENH_HDR_SIZE 6
166+
#define L2CAP_EXT_HDR_SIZE 8
167+
168+
#define L2CAP_FCS_SIZE 2
169+
#define L2CAP_SDULEN_SIZE 2
170+
#define L2CAP_PSMLEN_SIZE 2
165171

166172
struct l2cap_cmd_hdr {
167173
__u8 code;

0 commit comments

Comments
 (0)