Re: [PATCH v11 1/5] Bluetooth: Interleave with allowlist scan

From: Marcel Holtmann
Date: Thu Dec 03 2020 - 08:18:45 EST


Hi Howard,

> This patch implements the interleaving between allowlist scan and
> no-filter scan. It'll be used to save power when at least one monitor is
> registered and at least one pending connection or one device to be
> scanned for.
>
> The durations of the allowlist scan and the no-filter scan are
> controlled by MGMT command: Set Default System Configuration. The
> default values are set randomly for now.
>
> Signed-off-by: Howard Chung <howardchung@xxxxxxxxxx>
> Reviewed-by: Alain Michaud <alainm@xxxxxxxxxxxx>
> Reviewed-by: Manish Mandlik <mmandlik@xxxxxxxxxxxx>
> ---
>
> Changes in v11:
> - Add signed-off-by lines in patch 4/5, 5/5
>
> Changes in v10:
> - remove comment about setting default values
> - rename should_interleaving to use_interleaving
> - rebase on new bluetooth-next/master (previous patch was applied)
>
> Changes in v9:
> - Fix compile warning on patch 6/6
>
> Changes in v8:
> - Simplified logic in __hci_update_interleaved_scan
> - Remove hdev->name when calling bt_dev_dbg
> - Remove 'default' in hci_req_add_le_interleaved_scan switch block
> - Remove {} around :1915
> - Update commit message and title in v7 4/5
> - Add a cleanup patch for replacing BT_DBG with bt_dev_dbg
>
> Changes in v7:
> - Fix bt_dev_warn argument type warning
>
> Changes in v6:
> - Set parameter EnableAdvMonInterleaveScan to 1 byte long
>
> Changes in v5:
> - Rename 'adv_monitor' from many functions/variables
> - Move __hci_update_interleaved_scan into hci_req_add_le_passive_scan
> - Update the logic of update_adv_monitor_scan_state
>
> Changes in v4:
> - Rebase to bluetooth-next/master (previous 2 patches are applied)
> - Fix over 80 chars limit in mgmt_config.c
> - Set EnableAdvMonInterleaveScan default to Disable
>
> Changes in v3:
> - Remove 'Bluez' prefix
>
> Changes in v2:
> - remove 'case 0x001c' in mgmt_config.c
>
> include/net/bluetooth/hci_core.h | 10 +++
> net/bluetooth/hci_core.c | 3 +
> net/bluetooth/hci_request.c | 128 +++++++++++++++++++++++++++++--
> net/bluetooth/mgmt_config.c | 10 +++
> 4 files changed, 144 insertions(+), 7 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel