Bluetooth: Fix bug with ERTM minimum packet length
authorNathan Holstein <nathan@lampreynetworks.com>
Wed, 9 Jun 2010 19:46:25 +0000 (15:46 -0400)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 21 Jul 2010 17:39:05 +0000 (10:39 -0700)
commit51893f88dd916efead5e24a212c907b2cd35e160
treef28f257c32227f6a60f3fc347ba8b5d765db80c0
parentbfbacc11550a785caf082f3ccfcd7ecf882e09a4
Bluetooth: Fix bug with ERTM minimum packet length

ERTM and streaming mode L2CAP sockets have no minimum packet length. Only
basic mode connections have minimum length.

Instead, validate the packet containing all necessary control, FCS,
and SAR fields.

The patch fixes the drop of valid packets with length lower than 4.

Signed-off-by: Nathan Holstein <ngh@isomerica.net>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap.c