Bluetooth: hci_conn: Always use sk_timeo as conn_timeout
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 7 Feb 2024 20:26:20 +0000 (15:26 -0500)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 6 Mar 2024 22:22:41 +0000 (17:22 -0500)
commitbf98feea5b65ced367a871cf35fc044dedbcfb85
treec44d727a2f4cc8818da5a07995a932002cf7e076
parentf4b0c2b4cd78b75acde56c2ee5aa732b6fb2a6a9
Bluetooth: hci_conn: Always use sk_timeo as conn_timeout

This aligns the use socket sk_timeo as conn_timeout when initiating a
connection and then use it when scheduling the resulting HCI command,
that way the command is actually aborted synchronously thus not
blocking commands generated by hci_abort_conn_sync to inform the
controller the connection is to be aborted.

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