aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2011-10-11 06:37:54 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2011-10-13 15:52:37 -0400
commitd43cb289b065121cbf99434502cf544daf262c5a (patch)
treeebd9da017d504aeb232d0bcdc6495f8890f06768
parente4ca6d9854dc252e294007fc91249ce34d9a82e8 (diff)
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>
-rw-r--r--include/net/bluetooth/l2cap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index 67a2fdba9d8c..806b95093d3f 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -162,6 +162,12 @@ struct l2cap_hdr {
162 __le16 cid; 162 __le16 cid;
163} __packed; 163} __packed;
164#define L2CAP_HDR_SIZE 4 164#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
165 171
166struct l2cap_cmd_hdr { 172struct l2cap_cmd_hdr {
167 __u8 code; 173 __u8 code;