From: Howard Chung Date: Fri, 18 Sep 2020 03:11:49 +0000 (+0800) Subject: Bluetooth: Set scan parameters for ADV Monitor X-Git-Tag: v5.10.7~1401^2~113^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=291f0c550f43c7b1c985738208d8ca1c6808dc4f;p=platform%2Fkernel%2Flinux-rpi.git Bluetooth: Set scan parameters for ADV Monitor Set scan parameters when there is at least one Advertisement monitor. Signed-off-by: Howard Chung Reviewed-by: Alain Michaud Reviewed-by: Manish Mandlik Reviewed-by: Abhishek Pandit-Subedi Reviewed-by: Miao-chen Chou Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c index 413e3a5..d2b06f5 100644 --- a/net/bluetooth/hci_request.c +++ b/net/bluetooth/hci_request.c @@ -1027,6 +1027,9 @@ void hci_req_add_le_passive_scan(struct hci_request *req) } else if (hci_is_le_conn_scanning(hdev)) { window = hdev->le_scan_window_connect; interval = hdev->le_scan_int_connect; + } else if (hci_is_adv_monitoring(hdev)) { + window = hdev->le_scan_window_adv_monitor; + interval = hdev->le_scan_int_adv_monitor; } else { window = hdev->le_scan_window; interval = hdev->le_scan_interval;