Bluetooth: Fix mgmt pairing failure when authentication fails
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 9 Sep 2014 00:09:49 +0000 (17:09 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 9 Sep 2014 01:12:15 +0000 (03:12 +0200)
commite1e930f591bfd9604c3077f0af5c390f4f890259
tree6a336f7ddb09a2e53150907656207088afb24b0e
parentc68b7f127d5f517c214e8bcf231d0188f6776d2a
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>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_event.c
net/bluetooth/mgmt.c
net/bluetooth/smp.c
This page took 0.032033 seconds and 5 git commands to generate.