]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix LE pairing completion on connection failure
authorVishal Agarwal <vishal.agarwal@stericsson.com>
Thu, 7 Jun 2012 14:57:35 +0000 (20:27 +0530)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 8 Jun 2012 05:50:57 +0000 (02:50 -0300)
commitca92d7356ccfe02bb53cee2f41b9f100852df987
treecf8c367f0aba59689f9c72103652dbaeaf995b67
parenta62372ffad17f4debc8b5fdf7b3d7db153006d7e
Bluetooth: Fix LE pairing completion on connection failure

For BR/EDR pairing is assumed to be finished when connection is
done. For LE if connection is successful it did not necessarily
mean that pairing is also done but if the connection is unsuccessful
it should be assumed that pairing procedure is also finished.
This patch registers a new function with connect_cfm_cb callback for
LE link which sends the pairing complete signal to user space if
connection is unsuccessful.

Signed-off-by: Vishal Agarwal <vishal.agarwal@stericsson.com>
Acked-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/mgmt.c