]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Limit L2CAP_OPTIONS socket option usage with LE
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 2 Dec 2013 14:02:03 +0000 (16:02 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 5 Dec 2013 15:05:34 +0000 (07:05 -0800)
commit29b0b865a98d063a002a84b82611dbcdfdecd4d9
tree916bea4e6211ad9b3a510e7b4272150d3b735b98
parentaa8cfaa2d756e18794fe8437394b023f13bb6798
Bluetooth: Limit L2CAP_OPTIONS socket option usage with LE

Most of the values in L2CAP_OPTIONS are not applicable for LE and those
that are have different semantics. It makes therefore sense to
completely block this socket option for LE and add (in a separate patch)
a new socket option for tweaking the values that do make sense (mainly
the send and receive MTU). Legacy user space ATT code still depends on
getsockopt for L2CAP_OPTIONS though so we need to plug a hole for that
for backwards compatibility.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_sock.c