]> Pileus Git - ~andy/linux/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)
commit4c47d7396420160d27209f578680141874c0110b
treecf8c367f0aba59689f9c72103652dbaeaf995b67
parent476585ecf08067ac4e81d1a4cb19e2caf2093471
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