Skip to content

Commit 91054be

Browse files
ajayparidahenrikbrixandersen
authored andcommitted
net: wifi: shell: Correction to connect command default case
For default case it should print the option character provided by user. Extra shell_help removed as it's being called in the caller function. Signed-off-by: Ajay Parida <ajay.parida@nordicsemi.no>
1 parent e493d8c commit 91054be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,7 @@ static int __wifi_args_to_params(const struct shell *sh, size_t argc, char *argv
584584
case 'h':
585585
return -ENOEXEC;
586586
default:
587-
PR_ERROR("Invalid option %c\n", opt);
588-
shell_help(sh);
587+
PR_ERROR("Invalid option %c\n", optopt);
589588
return -EINVAL;
590589
}
591590
}

0 commit comments

Comments
 (0)