summaryrefslogtreecommitdiff
path: root/net/bluetooth/hci_request.c
diff options
context:
space:
mode:
authorHoward Chung <howardchung@google.com>2020-11-26 07:22:25 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2020-12-07 18:01:00 +0300
commit80af16a3e473f0789d205810733a513279e5b6f9 (patch)
tree630eb8f3372f1c19a3b77280153a11917014bcd1 /net/bluetooth/hci_request.c
parent3bc615fa93d2e89104edd924135451db8bbf631f (diff)
downloadlinux-80af16a3e473f0789d205810733a513279e5b6f9.tar.xz
Bluetooth: Add toggle to switch off interleave scan
This patch add a configurable parameter to switch off the interleave scan feature. Signed-off-by: Howard Chung <howardchung@google.com> Reviewed-by: Alain Michaud <alainm@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/hci_request.c')
-rw-r--r--net/bluetooth/hci_request.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c
index 0c326e32e240..d0d0fbbb3fa5 100644
--- a/net/bluetooth/hci_request.c
+++ b/net/bluetooth/hci_request.c
@@ -1057,7 +1057,8 @@ void hci_req_add_le_passive_scan(struct hci_request *req)
&own_addr_type))
return;
- if (__hci_update_interleaved_scan(hdev))
+ if (hdev->enable_advmon_interleave_scan &&
+ __hci_update_interleaved_scan(hdev))
return;
bt_dev_dbg(hdev, "interleave state %d", hdev->interleave_scan_state);