Commit c966eac7 authored by Lars Knudsen's avatar Lars Knudsen Committed by Mahesh Mahadevan
Browse files

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: default avatarLars Knudsen <LAKD@demant.com>
parent 20e31349
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;