diff options
author | Alain Michaud <alainm@chromium.org> | 2020-06-29 16:11:00 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2020-07-07 17:37:03 +0200 |
commit | 49b020c1d236a36a4533e7db6d2604cb57ed4c51 (patch) | |
tree | b2b2db238dd5320b46c8195b3edd136ea9ed7c03 /net/bluetooth/hci_core.c | |
parent | 343ad3964d2f10646178ed3caa2db6e75fe84612 (diff) | |
download | linux-49b020c1d236a36a4533e7db6d2604cb57ed4c51.tar.gz linux-49b020c1d236a36a4533e7db6d2604cb57ed4c51.tar.bz2 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_core.c')
-rw-r--r-- | net/bluetooth/hci_core.c | 1 |
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; |