Bluetooth: Only enable L2CAP FCS for ERTM or streaming
commit8c462b6047da80491b8cb6be878e8bf9313ac3e1
authorMat Martineau <mathewm@codeaurora.org>
Tue, 24 Aug 2010 22:35:42 +0000 (24 15:35 -0700)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 30 Sep 2010 15:19:35 +0000 (30 12:19 -0300)
treec7cac6b995af6126abf5ee18ba6121a4ee78436e
parent899611ee7d373e5eeda08e9a8632684e1ebbbf00
Bluetooth: Only enable L2CAP FCS for ERTM or streaming

This fixes a bug which caused the FCS setting to show L2CAP_FCS_CRC16
with L2CAP modes other than ERTM or streaming.  At present, this only
affects the FCS value shown with getsockopt() for basic mode.

Signed-off-by: Mat Martineau <mathewm@codeaurora.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/l2cap.c