diff options
| author | Howard Chung <[email protected]> | 2020-11-26 04:22:25 +0000 |
|---|---|---|
| committer | Johan Hedberg <[email protected]> | 2020-12-07 15:01:00 +0000 |
| commit | 80af16a3e473f0789d205810733a513279e5b6f9 (patch) | |
| tree | 630eb8f3372f1c19a3b77280153a11917014bcd1 /net/bluetooth/hci_request.c | |
| parent | Bluetooth: Refactor read default sys config for various types (diff) | |
| download | kernel-80af16a3e473f0789d205810733a513279e5b6f9.tar.gz kernel-80af16a3e473f0789d205810733a513279e5b6f9.zip | |
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 <[email protected]>
Reviewed-by: Alain Michaud <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
Signed-off-by: Johan Hedberg <[email protected]>
Diffstat (limited to 'net/bluetooth/hci_request.c')
| -rw-r--r-- | net/bluetooth/hci_request.c | 3 |
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); |
