Bluetooth: shell: Fix scan on to use active scanning
Both scan on and scan passive performed passive scanning, fixed scan on command to use active scanning. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
parent
1bb9a04912
commit
fe3aeebcfa
1 changed files with 4 additions and 3 deletions
|
@ -577,7 +577,7 @@ static void cmd_active_scan_on(int dups)
|
|||
{
|
||||
int err;
|
||||
struct bt_le_scan_param param = {
|
||||
.type = BT_HCI_LE_SCAN_PASSIVE,
|
||||
.type = BT_HCI_LE_SCAN_ACTIVE,
|
||||
.filter_dup = BT_HCI_LE_SCAN_FILTER_DUP_ENABLE,
|
||||
.interval = BT_GAP_SCAN_FAST_INTERVAL,
|
||||
.window = BT_GAP_SCAN_FAST_WINDOW };
|
||||
|
@ -2681,9 +2681,10 @@ static int cmd_bredr_sdp_find_record(int argc, char *argv[])
|
|||
|
||||
static const struct shell_cmd bt_commands[] = {
|
||||
{ "init", cmd_init, HELP_ADDR_LE },
|
||||
{ "scan", cmd_scan, "<value: on, off> <dup filter: dups, nodups>" },
|
||||
{ "scan", cmd_scan,
|
||||
"<value: on, passive, off> <dup filter: dups, nodups>" },
|
||||
{ "advertise", cmd_advertise,
|
||||
"<type: off, on, scan, nconn> <mode: discov, non_discov>" },
|
||||
"<type: off, on, scan, nconn> <mode: discov, non_discov>" },
|
||||
{ "connect", cmd_connect_le, HELP_ADDR_LE },
|
||||
{ "disconnect", cmd_disconnect, HELP_NONE },
|
||||
{ "auto-conn", cmd_auto_conn, HELP_ADDR_LE },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue