aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_request.c
diff options
context:
space:
mode:
authorHoward Chung <howardchung@google.com>2020-09-18 11:11:49 +0800
committerMarcel Holtmann <marcel@holtmann.org>2020-09-20 08:12:00 +0200
commit291f0c550f43c7b1c985738208d8ca1c6808dc4f (patch)
treef5f22fd252061cfcbb72546c424970205634ddc9 /net/bluetooth/hci_request.c
parentBluetooth: Update Adv monitor count upon removal (diff)
downloadlinux-dev-291f0c550f43c7b1c985738208d8ca1c6808dc4f.tar.xz
linux-dev-291f0c550f43c7b1c985738208d8ca1c6808dc4f.zip
Bluetooth: Set scan parameters for ADV Monitor
Set scan parameters when there is at least one Advertisement monitor. Signed-off-by: Howard Chung <howardchung@google.com> Reviewed-by: Alain Michaud <alainm@chromium.org> Reviewed-by: Manish Mandlik <mmandlik@chromium.org> Reviewed-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org> Reviewed-by: Miao-chen Chou <mcchou@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_request.c')
-rw-r--r--net/bluetooth/hci_request.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c
index 413e3a5aabf5..d2b06f5c9380 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;