Skip to content

Commit dc9d5d9

Browse files
krish2718nashif
authored andcommitted
wifi: shell: Fix typo in comparison
The length should be 3 for WMM not 4. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 49e8e11 commit dc9d5d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ static int cmd_wifi_ps_mode(const struct shell *sh, size_t argc, char *argv[])
928928

929929
if (!strncasecmp(argv[1], "legacy", 6)) {
930930
params.mode = WIFI_PS_MODE_LEGACY;
931-
} else if (!strncasecmp(argv[1], "WMM", 4)) {
931+
} else if (!strncasecmp(argv[1], "WMM", 3)) {
932932
params.mode = WIFI_PS_MODE_WMM;
933933
} else {
934934
shell_fprintf(sh, SHELL_WARNING, "Invalid PS mode\n");

0 commit comments

Comments
 (0)