OSDN Git Service

Bluetooth: Set defaults for le_scan_{int,window}_adv_monitor
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 6 Apr 2021 19:55:55 +0000 (21:55 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 8 Apr 2021 10:26:34 +0000 (12:26 +0200)
The le_scan_{int,window}_adv_monitor settings have not been set with a
sensible default.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_core.c

index 0da9b32..fd12f16 100644 (file)
@@ -3763,6 +3763,8 @@ struct hci_dev *hci_alloc_dev(void)
        hdev->le_scan_window_suspend = 0x0012;
        hdev->le_scan_int_discovery = DISCOV_LE_SCAN_INT;
        hdev->le_scan_window_discovery = DISCOV_LE_SCAN_WIN;
+       hdev->le_scan_int_adv_monitor = 0x0060;
+       hdev->le_scan_window_adv_monitor = 0x0030;
        hdev->le_scan_int_connect = 0x0060;
        hdev->le_scan_window_connect = 0x0060;
        hdev->le_conn_min_interval = 0x0018;