bluetooth: shell: Add missing return

Avoid invalid bit shift by adding return.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2023-05-15 17:11:16 +03:00 committed by Carles Cufí
commit 2c0fcdf22b

View file

@ -836,6 +836,8 @@ static int cmd_bap_broadcast_assistant_add_pa_sync(const struct shell *sh,
if (index < BT_ISO_BIS_INDEX_MIN ||
index > BT_ISO_BIS_INDEX_MAX) {
shell_error(sh, "Invalid index: %ld", index);
return -ENOEXEC;
}
bis_bitfield_req |= BIT(index);