]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit461488f9b3e679f694b452a6bc5bacebba65c8a2
treef28f257c32227f6a60f3fc347ba8b5d765db80c0
parent659ef215172fe71d281dfd6f7444b509778ff03f
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