aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_core.c
diff options
context:
space:
mode:
authorAlain Michaud <alainm@chromium.org>2020-06-29 16:11:00 +0000
committerMarcel Holtmann <marcel@holtmann.org>2020-07-07 17:37:03 +0200
commit49b020c1d236a36a4533e7db6d2604cb57ed4c51 (patch)
treeb2b2db238dd5320b46c8195b3edd136ea9ed7c03 /net/bluetooth/hci_core.c
parentdt-bindings: net: bluetooth: realtek: Fix uart-has-rtscts example (diff)
downloadlinux-dev-49b020c1d236a36a4533e7db6d2604cb57ed4c51.tar.xz
linux-dev-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_core.c')
-rw-r--r--net/bluetooth/hci_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index 7959b851cc63..e6bf3d9f9d7a 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -3569,6 +3569,7 @@ struct hci_dev *hci_alloc_dev(void)
hdev->le_rx_def_phys = HCI_LE_SET_PHY_1M;
hdev->le_num_of_adv_sets = HCI_MAX_ADV_INSTANCES;
hdev->def_multi_adv_rotation_duration = HCI_DEFAULT_ADV_DURATION;
+ hdev->def_le_autoconnect_timeout = HCI_LE_AUTOCONN_TIMEOUT;
hdev->rpa_timeout = HCI_DEFAULT_RPA_TIMEOUT;
hdev->discov_interleaved_timeout = DISCOV_INTERLEAVED_TIMEOUT;