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:
parent
bc4743fbf2
commit
cf870e8350
9 changed files with 12 additions and 13 deletions
|
@ -108,7 +108,7 @@ void start_rpa_scanning(void)
|
|||
{
|
||||
/* Start passive scanning */
|
||||
struct bt_le_scan_param scan_param = {
|
||||
.type = BT_HCI_LE_SCAN_PASSIVE,
|
||||
.type = BT_LE_SCAN_TYPE_PASSIVE,
|
||||
.options = BT_LE_SCAN_OPT_FILTER_DUPLICATE,
|
||||
.interval = 0x0040,
|
||||
.window = 0x0020,
|
||||
|
|
|
@ -122,7 +122,7 @@ void start_scanning(void)
|
|||
{
|
||||
/* Start passive scanning */
|
||||
struct bt_le_scan_param scan_param = {
|
||||
.type = BT_HCI_LE_SCAN_PASSIVE,
|
||||
.type = BT_LE_SCAN_TYPE_PASSIVE,
|
||||
.options = BT_LE_SCAN_OPT_FILTER_DUPLICATE,
|
||||
.interval = 0x0040,
|
||||
.window = 0x0020,
|
||||
|
|
|
@ -1300,7 +1300,7 @@ static struct bt_le_per_adv_sync_cb sync_cb = {
|
|||
static void test_scanx_main(void)
|
||||
{
|
||||
struct bt_le_scan_param scan_param = {
|
||||
.type = BT_HCI_LE_SCAN_ACTIVE,
|
||||
.type = BT_LE_SCAN_TYPE_ACTIVE,
|
||||
.options = BT_LE_SCAN_OPT_NONE,
|
||||
.interval = 0x0004,
|
||||
.window = 0x0004,
|
||||
|
|
|
@ -753,7 +753,7 @@ static struct bt_le_scan_cb scan_callbacks = {
|
|||
static void test_iso_recv_main(void)
|
||||
{
|
||||
struct bt_le_scan_param scan_param = {
|
||||
.type = BT_HCI_LE_SCAN_ACTIVE,
|
||||
.type = BT_LE_SCAN_TYPE_ACTIVE,
|
||||
.options = BT_LE_SCAN_OPT_NONE,
|
||||
.interval = 0x0004,
|
||||
.window = 0x0004,
|
||||
|
@ -1028,7 +1028,7 @@ static void test_iso_recv_main(void)
|
|||
static void test_iso_recv_vs_dp_main(void)
|
||||
{
|
||||
struct bt_le_scan_param scan_param = {
|
||||
.type = BT_HCI_LE_SCAN_ACTIVE,
|
||||
.type = BT_LE_SCAN_TYPE_ACTIVE,
|
||||
.options = BT_LE_SCAN_OPT_NONE,
|
||||
.interval = 0x0004,
|
||||
.window = 0x0004,
|
||||
|
|
|
@ -569,7 +569,7 @@ void bt_mesh_test_send_over_adv(void *data, size_t len)
|
|||
int bt_mesh_test_wait_for_packet(bt_le_scan_cb_t scan_cb, struct k_sem *observer_sem, uint16_t wait)
|
||||
{
|
||||
struct bt_le_scan_param scan_param = {
|
||||
.type = BT_HCI_LE_SCAN_PASSIVE,
|
||||
.type = BT_LE_SCAN_TYPE_PASSIVE,
|
||||
.options = BT_LE_SCAN_OPT_NONE,
|
||||
.interval = BT_MESH_ADV_SCAN_UNIT(1000),
|
||||
.window = BT_MESH_ADV_SCAN_UNIT(1000)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue