Bluetooth: Change initial min and max interval
authorJonas Holmberg <jonashg@axis.com>
Thu, 23 Feb 2017 14:17:02 +0000 (15:17 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 12 Apr 2017 20:02:38 +0000 (22:02 +0200)
Use the initial connection interval recommended in Bluetooth
Specification v4.2 (30ms - 50ms).

Signed-off-by: Jonas Holmberg <jonashg@axis.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c

index 3ac89e9ace71556c66804b19e8dde8d397eb308f..05686776a5fb78d67dd38b22632ccfd1355b857e 100644 (file)
@@ -2950,8 +2950,8 @@ struct hci_dev *hci_alloc_dev(void)
        hdev->le_adv_max_interval = 0x0800;
        hdev->le_scan_interval = 0x0060;
        hdev->le_scan_window = 0x0030;
-       hdev->le_conn_min_interval = 0x0028;
-       hdev->le_conn_max_interval = 0x0038;
+       hdev->le_conn_min_interval = 0x0018;
+       hdev->le_conn_max_interval = 0x0028;
        hdev->le_conn_latency = 0x0000;
        hdev->le_supv_timeout = 0x002a;
        hdev->le_def_tx_len = 0x001b;