net: wifi_shell: Display correct power save status

Display power save status correctly.

Signed-off-by: Ajay Parida <ajay.parida@nordicsemi.no>
This commit is contained in:
Ajay Parida 2023-01-19 16:42:08 +05:30 committed by Carles Cufí
commit 057e2fc59c

View file

@ -445,7 +445,7 @@ static int cmd_wifi_ps(const struct shell *sh, size_t argc, char *argv[])
}
shell_fprintf(sh, SHELL_NORMAL, "PS status: %s\n",
wifi_ps_mode2str[config.enabled]);
wifi_ps2str[config.enabled]);
if (config.enabled) {
shell_fprintf(sh, SHELL_NORMAL, "PS mode: %s\n",
wifi_ps_mode2str[config.mode]);