diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-09-08 17:09:49 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-09-09 03:12:15 +0200 |
commit | e1e930f591bfd9604c3077f0af5c390f4f890259 (patch) | |
tree | 6a336f7ddb09a2e53150907656207088afb24b0e /net/bluetooth/smp.c | |
parent | c68b7f127d5f517c214e8bcf231d0188f6776d2a (diff) | |
download | talos-obmc-linux-e1e930f591bfd9604c3077f0af5c390f4f890259.tar.gz talos-obmc-linux-e1e930f591bfd9604c3077f0af5c390f4f890259.zip |
Bluetooth: Fix mgmt pairing failure when authentication fails
Whether through HCI with BR/EDR or SMP with LE when authentication fails
we should also notify any pending Pair Device mgmt command. This patch
updates the mgmt_auth_failed function to take the actual hci_conn object
and makes sure that any pending pairing command is notified and cleaned
up appropriately.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/smp.c')
-rw-r--r-- | net/bluetooth/smp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index 560f78a9f960..25c9040e0b12 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c @@ -420,8 +420,7 @@ static void smp_failure(struct l2cap_conn *conn, u8 reason) &reason); clear_bit(HCI_CONN_ENCRYPT_PEND, &hcon->flags); - mgmt_auth_failed(hcon->hdev, &hcon->dst, hcon->type, hcon->dst_type, - HCI_ERROR_AUTH_FAILURE); + mgmt_auth_failed(hcon, HCI_ERROR_AUTH_FAILURE); if (chan->data) smp_chan_destroy(conn); |