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>
This commit is contained in:
committed by
Johan Hedberg
parent
3bc615fa93
commit
80af16a3e4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user