]> 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)
commit771be0946d762c5a4f8bb6281ce6118b87598ffc
treecf8c367f0aba59689f9c72103652dbaeaf995b67
parent14512bf2150341e5ea298030e4acc30919b4ebff
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