Skip to content

Commit

Permalink
[nrf fromtree] wifi: shell: Fix typo in comparison
Browse files Browse the repository at this point in the history
The length should be 3 for WMM not 4.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit dc9d5d9)
  • Loading branch information
krish2718 committed Jan 17, 2024
1 parent df305f4 commit c899efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/net/l2/wifi/wifi_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ static int cmd_wifi_ps_mode(const struct shell *sh, size_t argc, char *argv[])

if (!strncasecmp(argv[1], "legacy", 6)) {
params.mode = WIFI_PS_MODE_LEGACY;
} else if (!strncasecmp(argv[1], "WMM", 4)) {
} else if (!strncasecmp(argv[1], "WMM", 3)) {
params.mode = WIFI_PS_MODE_WMM;
} else {
shell_fprintf(sh, SHELL_WARNING, "Invalid PS mode\n");
Expand Down

0 comments on commit c899efb

Please sign in to comment.