From b601a357cd22e3f450cc49df0d59b5b9b89d1ab2 Mon Sep 17 00:00:00 2001 From: Ren Chen Date: Fri, 21 Mar 2025 10:12:51 +0800 Subject: [PATCH] drivers: i3c: shell: fix the argv index for broadcast setwml ccc For the broadcast setwml ccc, the argument vector index of the input length is 2 instead of 3. This commit fixs this issue. Signed-off-by: Ren Chen --- drivers/i3c/i3c_shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i3c/i3c_shell.c b/drivers/i3c/i3c_shell.c index 03ac3458a6d..2552cf44f7c 100644 --- a/drivers/i3c/i3c_shell.c +++ b/drivers/i3c/i3c_shell.c @@ -963,7 +963,7 @@ static int cmd_i3c_ccc_setmwl_bc(const struct shell *sh, size_t argc, char **arg return -ENODEV; } - mwl.len = strtol(argv[3], NULL, 16); + mwl.len = strtol(argv[2], NULL, 16); ret = i3c_ccc_do_setmwl_all(dev, &mwl); if (ret < 0) {