Message ID | 20230203173900.1.I9ca803e2f809e339da43c103860118e7381e4871@changeid (mailing list archive) |
---|---|
State | Awaiting Upstream |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | Bluetooth: Make sure LE create conn cancel is sent when timeout | expand |
Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>: On Fri, 3 Feb 2023 17:39:36 +0800 you wrote: > From: Archie Pusaka <apusaka@chromium.org> > > 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. > > [...] Here is the summary with links: - Bluetooth: Make sure LE create conn cancel is sent when timeout https://git.kernel.org/bluetooth/bluetooth-next/c/edda34a2348f You are awesome, thank you!
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 61a34801e61e..f2c7edaa7145 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c @@ -1243,6 +1243,8 @@ static void create_le_conn_complete(struct hci_dev *hdev, void *data, int err) if (conn != hci_lookup_le_connect(hdev)) goto done; + /* Flush to make sure we send create conn cancel command if needed */ + flush_delayed_work(&conn->le_conn_timeout); hci_conn_failed(conn, bt_status(err)); done: