Bluetooth: hci_conn: Consolidate code for aborting connections
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 27 Jun 2023 00:25:06 +0000 (17:25 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 11 Aug 2023 18:42:15 +0000 (11:42 -0700)
commita13f316e90fdb1fb6df6582e845aa9b3270f3581
tree214fc9ee8640cfb772df562f8baaec9ec9f78935
parent0b70151328781a89c89e4cf3fae21fc0e98d869e
Bluetooth: hci_conn: Consolidate code for aborting connections

This consolidates code for aborting connections using
hci_cmd_sync_queue so it is synchronized with other threads, but
because of the fact that some commands may block the cmd_sync_queue
while waiting specific events this attempt to cancel those requests by
using hci_cmd_sync_cancel.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_sync.c
net/bluetooth/mgmt.c