diff options
author | Alain Michaud <alainm@chromium.org> | 2020-06-29 18:11:00 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2020-07-07 17:37:03 +0200 |
commit | 49b020c1d236a36a4533e7db6d2604cb57ed4c51 (patch) | |
tree | b2b2db238dd5320b46c8195b3edd136ea9ed7c03 /net/bluetooth/hci_event.c | |
parent | dt-bindings: net: bluetooth: realtek: Fix uart-has-rtscts example (diff) | |
download | linux-49b020c1d236a36a4533e7db6d2604cb57ed4c51.tar.xz linux-49b020c1d236a36a4533e7db6d2604cb57ed4c51.zip |
Bluetooth: Adding a configurable autoconnect timeout
This patch adds a configurable LE autoconnect timeout.
Signed-off-by: Alain Michaud <alainm@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index e060fc9ebb18..03a0759f2fc2 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -5315,7 +5315,7 @@ static struct hci_conn *check_pending_le_conn(struct hci_dev *hdev, } conn = hci_connect_le(hdev, addr, addr_type, BT_SECURITY_LOW, - HCI_LE_AUTOCONN_TIMEOUT, HCI_ROLE_MASTER, + hdev->def_le_autoconnect_timeout, HCI_ROLE_MASTER, direct_rpa); if (!IS_ERR(conn)) { /* If HCI_AUTO_CONN_EXPLICIT is set, conn is already owned |