Skip to content

Commit

Permalink
net: wifi: shell: Correction to connect command default case
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ajayparida authored and henrikbrixandersen committed May 29, 2024
1 parent e493d8c commit 91054be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions subsys/net/l2/wifi/wifi_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,7 @@ static int __wifi_args_to_params(const struct shell *sh, size_t argc, char *argv
case 'h':
return -ENOEXEC;
default:
PR_ERROR("Invalid option %c\n", opt);
shell_help(sh);
PR_ERROR("Invalid option %c\n", optopt);
return -EINVAL;
}
}
Expand Down

0 comments on commit 91054be

Please sign in to comment.