OSDN Git Service

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)
committerNick Pelly <npelly@google.com>
Tue, 7 Apr 2009 00:39:28 +0000 (17:39 -0700)
commit56e101827e98fab47d7671f712ef3505a5c22f4b
treec7f55e9bc76e69419c7a6190e3bdd443a3ec46d0
parent822048c2613318615b185925eaea02c4828bad3d
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