Bluetooth: Shell: Fix missing RX QoS param and MSE check
The bis_iso_qos.rx was missing in param sent in bt_iso_big_sync Also, MSE = 0 is valid (fixed error check) Signed-off-by: Lars Knudsen <LAKD@demant.com>
This commit is contained in:
parent
20e313496c
commit
c966eac722
1 changed files with 3 additions and 3 deletions
|
@ -821,6 +821,7 @@ static int cmd_big_sync(const struct shell *sh, size_t argc, char *argv[])
|
|||
}
|
||||
|
||||
bis_iso_qos.tx = NULL;
|
||||
bis_iso_qos.rx = &iso_rx_qos;
|
||||
|
||||
param.bis_channels = bis_channels;
|
||||
param.num_bis = BIS_ISO_CHAN_COUNT;
|
||||
|
@ -846,9 +847,8 @@ static int cmd_big_sync(const struct shell *sh, size_t argc, char *argv[])
|
|||
return -ENOEXEC;
|
||||
}
|
||||
|
||||
if (!IN_RANGE(mse,
|
||||
BT_ISO_SYNC_MSE_MIN,
|
||||
BT_ISO_SYNC_MSE_MAX)) {
|
||||
if (mse != BT_ISO_SYNC_MSE_ANY &&
|
||||
!IN_RANGE(mse, BT_ISO_SYNC_MSE_MIN, BT_ISO_SYNC_MSE_MAX)) {
|
||||
shell_error(sh, "Invalid mse %lu", mse);
|
||||
|
||||
return -ENOEXEC;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue