wpa_cli: Fix PASN control interface commands

Map to correct control interface commands for PASN start and stop.

Fixes: ad338cfe58 ("ctrl_iface: Add support for PASN authentication")
Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
This commit is contained in:
Veerendranath Jakkam 2022-09-06 00:50:20 +05:30 committed by Jouni Malinen
parent b6d3fd05e3
commit a9062432e2

View file

@ -3262,19 +3262,18 @@ static int wpa_cli_cmd_all_bss(struct wpa_ctrl *ctrl, int argc, char *argv[])
#ifdef CONFIG_PASN #ifdef CONFIG_PASN
static int wpa_cli_cmd_pasn_auth_start(struct wpa_ctrl *ctrl, int argc, static int wpa_cli_cmd_pasn_start(struct wpa_ctrl *ctrl, int argc, char *argv[])
char *argv[])
{ {
return wpa_cli_cmd(ctrl, "PASN_AUTH_START", 4, argc, argv); return wpa_cli_cmd(ctrl, "PASN_START", 4, argc, argv);
} }
static int wpa_cli_cmd_pasn_auth_stop(struct wpa_ctrl *ctrl, int argc, static int wpa_cli_cmd_pasn_stop(struct wpa_ctrl *ctrl, int argc, char *argv[])
char *argv[])
{ {
return wpa_cli_cmd(ctrl, "PASN_AUTH_STOP", 0, argc, argv); return wpa_cli_cmd(ctrl, "PASN_STOP", 0, argc, argv);
} }
static int wpa_cli_cmd_ptksa_cache_list(struct wpa_ctrl *ctrl, int argc, static int wpa_cli_cmd_ptksa_cache_list(struct wpa_ctrl *ctrl, int argc,
char *argv[]) char *argv[])
{ {
@ -4026,10 +4025,10 @@ static const struct wpa_cli_cmd wpa_cli_commands[] = {
{ "all_bss", wpa_cli_cmd_all_bss, NULL, cli_cmd_flag_none, { "all_bss", wpa_cli_cmd_all_bss, NULL, cli_cmd_flag_none,
"= list all BSS entries (scan results)" }, "= list all BSS entries (scan results)" },
#ifdef CONFIG_PASN #ifdef CONFIG_PASN
{ "pasn_auth_start", wpa_cli_cmd_pasn_auth_start, NULL, { "pasn_start", wpa_cli_cmd_pasn_start, NULL,
cli_cmd_flag_none, cli_cmd_flag_none,
"bssid=<BSSID> akmp=<WPA key mgmt> cipher=<WPA cipher> group=<group> nid=<network id> = Start PASN authentication" }, "bssid=<BSSID> akmp=<WPA key mgmt> cipher=<WPA cipher> group=<group> nid=<network id> = Start PASN authentication" },
{ "pasn_auth_stop", wpa_cli_cmd_pasn_auth_stop, NULL, { "pasn_stop", wpa_cli_cmd_pasn_stop, NULL,
cli_cmd_flag_none, cli_cmd_flag_none,
"= Stop PASN authentication" }, "= Stop PASN authentication" },
{ "ptksa_cache_list", wpa_cli_cmd_ptksa_cache_list, NULL, { "ptksa_cache_list", wpa_cli_cmd_ptksa_cache_list, NULL,