Skip to content

Commit bdfba22

Browse files
PavelVPVrlubos
authored andcommitted
[nrf fromtree] Bluetooth: Mesh: Fix args parsing in cmd_net_key_add f...
unction cmd_net_key_add has only 2 arguments. Signed-off-by: Pavel Vasilyev <[email protected]> (cherry picked from commit d286bc4)
1 parent 2c781ce commit bdfba22

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/mesh/shell

1 file changed

+1
-1
lines changed

subsys/bluetooth/mesh/shell/cfg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ static int cmd_net_key_add(const struct shell *sh, size_t argc, char *argv[])
407407
if (has_key_val) {
408408
size_t len;
409409

410-
len = hex2bin(argv[3], strlen(argv[3]), key_val, sizeof(key_val));
410+
len = hex2bin(argv[2], strlen(argv[2]), key_val, sizeof(key_val));
411411
(void)memset(key_val, 0, sizeof(key_val) - len);
412412
} else {
413413
memcpy(key_val, bt_mesh_shell_default_key, sizeof(key_val));

0 commit comments

Comments
 (0)