Bluetooth: Restrict application of socket options
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 16 Jan 2009 09:06:13 +0000 (10:06 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 27 Feb 2009 05:14:33 +0000 (06:14 +0100)
commit0588d94fd7e414367a7ae517569d2222441c255f
treec8563ce159bbea94e57df39a9b27bb1628ebccdd
parentf62e4323ab43c59e7cd7f72c1eb392d7c767ce5a
Bluetooth: Restrict application of socket options

The new socket options should only be evaluated for SOL_BLUETOOTH level
and not for every other level. Previously this causes some minor issues
when detecting if a kernel with certain features is available.

Also restrict BT_SECURITY to SOCK_SEQPACKET for L2CAP and SOCK_STREAM for
the RFCOMM protocol.

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