Bluetooth: Terminate the link if pairing is cancelled
authorManish Mandlik <mmandlik@google.com>
Wed, 17 Jun 2020 14:39:19 +0000 (16:39 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 18 Jun 2020 10:12:12 +0000 (13:12 +0300)
commit76b139965575e51224d33ea721d9d00a542b6b39
tree6e0e63770d99f5fb89fe1be74462b47a56fe5425
parent8208f5a9d435e58ee7f53a24d9ccbe7787944537
Bluetooth: Terminate the link if pairing is cancelled

If user decides to cancel the ongoing pairing process (e.g. by clicking
the cancel button on pairing/passkey window), abort any ongoing pairing
and then terminate the link if it was created because of the pair
device action.

Signed-off-by: Manish Mandlik <mmandlik@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/l2cap_core.c
net/bluetooth/mgmt.c