bluetooth: correct bt_le_scan_param scan type

The `type` parameter of `struct bt_le_scan_param` is documented as
taking a `BT_LE_SCAN_TYPE_*` value, not a `BT_HCI_LE_SCAN_*` value.

In practice this makes no difference as the values are defined as the
same integer, but does result in `<zephyr/bluetooth/hci.h>` not needing
to be included.

Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
Jordan Yates 2024-06-28 15:10:44 +10:00 committed by Alberto Escolar
commit cf870e8350
9 changed files with 12 additions and 13 deletions

View file

@ -378,8 +378,8 @@ int bt_mesh_scan_active_set(bool active)
int bt_mesh_scan_enable(void)
{
struct bt_le_scan_param scan_param = {
.type = active_scanning ? BT_HCI_LE_SCAN_ACTIVE :
BT_HCI_LE_SCAN_PASSIVE,
.type = active_scanning ? BT_LE_SCAN_TYPE_ACTIVE :
BT_LE_SCAN_TYPE_PASSIVE,
.interval = MESH_SCAN_INTERVAL,
.window = MESH_SCAN_WINDOW
};