summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_core.c
diff options
context:
space:
mode:
authorPaulo Sérgio2012-10-25 21:55:51 +0200
committerGustavo Padovan2012-11-09 16:45:37 +0100
commit896ea28ea824d49671fc7e9315d9c5be491a644f (patch)
tree008868caacda045b56622f02acf0349b841d8be6 /net/bluetooth/hci_core.c
parentBluetooth: Fix having bogus entries in mgmt_read_index_list reply (diff)
downloadkernel-qcow2-linux-896ea28ea824d49671fc7e9315d9c5be491a644f.tar.gz
kernel-qcow2-linux-896ea28ea824d49671fc7e9315d9c5be491a644f.tar.xz
kernel-qcow2-linux-896ea28ea824d49671fc7e9315d9c5be491a644f.zip
Bluetooth: Fix error status when pairing fails
When pairing fails due to wrong confirm value, the management layer doesn't report a proper error status. It sends MGMT_STATUS_CONNECT_FAILED instead of MGMT_STATUS_AUTH_FAILED. Most of management functions that receive a status as a parameter expects for it to be encoded as a HCI status. But when a SMP pairing fails, the SMP layer sends the SMP reason as the error status to the management layer. This commit maps all SMP reasons to HCI_ERROR_AUTH_FAILURE, which will be converted to MGMT_STATUS_AUTH_FAILED in the management layer. Reported-by: Claudio Takahasi <claudio.takahasi@openbossa.org> Reviewed-by: João Paulo Rechi Vita <jprvita@openbossa.org> Signed-off-by: Paulo Sérgio <paulo.sergio@openbossa.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth/hci_core.c')
0 files changed, 0 insertions, 0 deletions