Bluetooth: Add support for FCS option to L2CAP
authorGustavo F. Padovan <gustavo@las.ic.unicamp.br>
Fri, 21 Aug 2009 01:26:02 +0000 (22:26 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 22 Aug 2009 21:59:49 +0000 (14:59 -0700)
commitfcc203c30d72dde82692f6b761a80e5ca5fdd8fa
tree04eb154db3be85574efe74542f528efb39abf5bb
parent6840ed0770d79b9bb0800e5e026a067040ef18f5
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>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap.c