Bluetooth: host: Use bluetooth defines instead of hci defines
Use the scan types defined in bluetooth.h instead of the hci defined ones. Although they have the same value it is best to avoid using the hci.h header in applications. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
d9d0964fcc
commit
88a6234ff2
2 changed files with 3 additions and 3 deletions
|
@ -164,7 +164,7 @@ static void start_scan(void)
|
|||
/* Use active scanning and disable duplicate filtering to handle any
|
||||
* devices that might update their advertising data at runtime. */
|
||||
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 = BT_GAP_SCAN_FAST_INTERVAL,
|
||||
.window = BT_GAP_SCAN_FAST_WINDOW,
|
||||
|
|
|
@ -511,7 +511,7 @@ static int cmd_active_scan_on(const struct shell *shell, u32_t options)
|
|||
{
|
||||
int err;
|
||||
struct bt_le_scan_param param = {
|
||||
.type = BT_HCI_LE_SCAN_ACTIVE,
|
||||
.type = BT_LE_SCAN_TYPE_ACTIVE,
|
||||
.options = BT_LE_SCAN_OPT_FILTER_DUPLICATE,
|
||||
.interval = BT_GAP_SCAN_FAST_INTERVAL,
|
||||
.window = BT_GAP_SCAN_FAST_WINDOW };
|
||||
|
@ -533,7 +533,7 @@ static int cmd_active_scan_on(const struct shell *shell, u32_t options)
|
|||
static int cmd_passive_scan_on(const struct shell *shell, u32_t options)
|
||||
{
|
||||
struct bt_le_scan_param param = {
|
||||
.type = BT_HCI_LE_SCAN_PASSIVE,
|
||||
.type = BT_LE_SCAN_TYPE_PASSIVE,
|
||||
.options = BT_LE_SCAN_OPT_NONE,
|
||||
.interval = 0x10,
|
||||
.window = 0x10 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue