summaryrefslogtreecommitdiff
path: root/drivers/Makefile
diff options
context:
space:
mode:
authorArchie Pusaka <apusaka@chromium.org>2023-02-03 12:39:36 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-02-10 01:19:45 +0300
commit5cd39700de9b699ef2f333ba3c405e51afbf0eb0 (patch)
treefe21119e6100558e8da0604c6f5c045245b7edae /drivers/Makefile
parent0f00cd322d22d4441de51aa80bcce5bb6a8cbb44 (diff)
downloadlinux-5cd39700de9b699ef2f333ba3c405e51afbf0eb0.tar.xz
Bluetooth: Make sure LE create conn cancel is sent when timeout
When sending LE create conn command, we set a timer with a duration of HCI_LE_CONN_TIMEOUT before timing out and calling create_le_conn_complete. Additionally, when receiving the command complete, we also set a timer with the same duration to call le_conn_timeout. Usually the latter will be triggered first, which then sends a LE create conn cancel command. However, due to the nature of racing, it is possible for the former to be called first, thereby calling the chain hci_conn_failed -> hci_conn_del -> cancel_delayed_work, thereby preventing LE create conn cancel to be sent. In this situation, the controller will be stuck in trying the LE connection. This patch flushes le_conn_timeout on create_le_conn_complete to make sure we always send LE create connection cancel, if necessary. Signed-off-by: Archie Pusaka <apusaka@chromium.org> Reviewed-by: Ying Hsu <yinghsu@chromium.org> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'drivers/Makefile')
0 files changed, 0 insertions, 0 deletions