Bluetooth: shell: Fix advertise command parameters

Fix the advertise command not setting the peer address parameter to
NULL, this could turn it into a directed advertiser.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2020-04-16 11:03:19 +02:00 committed by Carles Cufí
commit 8b5d91e659

View file

@ -738,6 +738,7 @@ static int cmd_advertise(const struct shell *shell, size_t argc, char *argv[])
return 0;
}
param.peer = NULL;
param.id = selected_id;
param.interval_min = BT_GAP_ADV_FAST_INT_MIN_2;
param.interval_max = BT_GAP_ADV_FAST_INT_MAX_2;