]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix Pair Device response parameters for pairing failure
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 19 Mar 2014 15:00:49 +0000 (17:00 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 19 Mar 2014 20:56:30 +0000 (13:56 -0700)
commitebaa037cf7b09fd619cbfdd2e6a6337a1fb9c2ab
tree6ef6b9ecd8dfeb8a9d6532f0a466712219b444b1
parente138f972c392364d85232c6e7301a74fe075b896
Bluetooth: Fix Pair Device response parameters for pairing failure

It is possible that pairing fails after we've already received remote
identity information. One example of such a situation is when
re-encryption using the LTK fails. In this case the hci_conn object has
already been updated with the identity address but user space does not
yet know about it (since we didn't notify it of the new IRK yet).

To ensure user space doesn't get a Pair Device command response with an
unknown address always use the same address in the response as was used
for the original command.

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