Bluetooth: Disconnect L2CAP connections without encryption
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 15 Jan 2009 20:58:44 +0000 (21:58 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 27 Feb 2009 05:14:33 +0000 (06:14 +0100)
commitf62e4323ab43c59e7cd7f72c1eb392d7c767ce5a
tree8ee582e12c91260ee4eccecbbe2fe055b41d97aa
parent8c84b83076b5062f59b6167cdda90d9e5124aa71
Bluetooth: Disconnect L2CAP connections without encryption

For L2CAP connections with high security setting, the link will be
immediately dropped when the encryption gets disabled. For L2CAP
connections with medium security there will be grace period where
the remote device has the chance to re-enable encryption. If it
doesn't happen then the link will also be disconnected.

The requirement for the grace period with medium security comes from
Bluetooth 2.0 and earlier devices that require role switching.

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