aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth
diff options
context:
space:
mode:
authorGustavo F. Padovan <gustavo@las.ic.unicamp.br>2009-08-20 21:26:02 -0400
committerMarcel Holtmann <marcel@holtmann.org>2009-08-22 17:59:49 -0400
commitfcc203c30d72dde82692f6b761a80e5ca5fdd8fa (patch)
tree04eb154db3be85574efe74542f528efb39abf5bb /include/net/bluetooth
parent6840ed0770d79b9bb0800e5e026a067040ef18f5 (diff)
Bluetooth: Add support for FCS option to L2CAP
Implement CRC16 check for L2CAP packets. FCS is used by Streaming Mode and Enhanced Retransmission Mode and is a extra check for the packet content. Using CRC16 is the default, L2CAP won't use FCS only when both side send a "No FCS" request. Initially based on a patch from Nathan Holstein <nathan@lampreynetworks.com> Signed-off-by: Gustavo F. Padovan <gustavo@las.ic.unicamp.br> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r--include/net/bluetooth/l2cap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
index 2cf7003cb1b6..59b26bf10f30 100644
--- a/include/net/bluetooth/l2cap.h
+++ b/include/net/bluetooth/l2cap.h
@@ -54,6 +54,7 @@ struct l2cap_options {
54 __u16 imtu; 54 __u16 imtu;
55 __u16 flush_to; 55 __u16 flush_to;
56 __u8 mode; 56 __u8 mode;
57 __u8 fcs;
57}; 58};
58 59
59#define L2CAP_CONNINFO 0x02 60#define L2CAP_CONNINFO 0x02
@@ -348,6 +349,7 @@ struct l2cap_pinfo {
348#define L2CAP_CONF_MTU_DONE 0x08 349#define L2CAP_CONF_MTU_DONE 0x08
349#define L2CAP_CONF_MODE_DONE 0x10 350#define L2CAP_CONF_MODE_DONE 0x10
350#define L2CAP_CONF_CONNECT_PEND 0x20 351#define L2CAP_CONF_CONNECT_PEND 0x20
352#define L2CAP_CONF_NO_FCS_RECV 0x40
351#define L2CAP_CONF_STATE2_DEVICE 0x80 353#define L2CAP_CONF_STATE2_DEVICE 0x80
352 354
353#define L2CAP_CONF_MAX_CONF_REQ 2 355#define L2CAP_CONF_MAX_CONF_REQ 2