]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: SMP: Fix setting unknown auth_req bits
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 11 Oct 2012 14:26:06 +0000 (16:26 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 12 Oct 2012 09:55:20 +0000 (17:55 +0800)
commitce4d56a4324d5e848944bd8a281e68e900a9fa25
tree5c115c05826940ad19a77a1c211792413105fc98
parentd1118ed372e6db14c2f6801041281adf2cc8f6dc
Bluetooth: SMP: Fix setting unknown auth_req bits

When sending a pairing request or response we should not just blindly
copy the value that the remote device sent. Instead we should at least
make sure to mask out any unknown bits. This is particularly critical
from the upcoming LE Secure Connections feature perspective as
incorrectly indicating support for it (by copying the remote value)
would cause a failure to pair with devices that support it.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Cc: stable@kernel.org
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/smp.c