]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix ATT socket backwards compatibility with user space
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 18 Oct 2013 08:49:25 +0000 (11:49 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 Oct 2013 08:53:57 +0000 (01:53 -0700)
commit7052ef66c5992b739fcacf4b13240df937dcfe77
tree7b3c5955524ca3c83f84ff5d8ded8c2ef02ac23a
parente11816df028b63ac73591b1fa8072ab03302ff9a
Bluetooth: Fix ATT socket backwards compatibility with user space

Old user space versions bind the Attribute Protocol socket to
BDADDR_BREDR when they should be using BDADDR_LE_PUBLIC or
BDADDR_LE_RANDOM. The kernel recently introduced stricter checks on the
socket parameters but we need to punch this hole for old user space
versions to keep them working.

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