]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Don't check encryption for L2CAP raw sockets
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 4 Feb 2009 20:07:19 +0000 (21:07 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 27 Feb 2009 05:14:36 +0000 (06:14 +0100)
commitcabb45d608b0c8902b6c1aba5b69438d420fb36b
tree6c13e5413ce88e80780b02c80be00341db68cb78
parent3064140730deadda60862f2f2d52e5180d1ce5ea
Bluetooth: Don't check encryption for L2CAP raw sockets

For L2CAP sockets with medium and high security requirement a missing
encryption will enforce the closing of the link. For the L2CAP raw
sockets this is not needed, so skip that check.

This fixes a crash when pairing Bluetooth 2.0 (and earlier) devices
since the L2CAP state machine got confused and then locked up the whole
system.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap.c