From: Veerendranath Jakkam Date: Mon, 5 Sep 2022 19:20:20 +0000 (+0530) Subject: wpa_cli: Fix PASN control interface commands X-Git-Tag: hostap_2_11~1492 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9062432e29dd9314c78d6c9971cc639930c26f2;p=thirdparty%2Fhostap.git wpa_cli: Fix PASN control interface commands Map to correct control interface commands for PASN start and stop. Fixes: ad338cfe586c ("ctrl_iface: Add support for PASN authentication") Signed-off-by: Veerendranath Jakkam --- diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c index 7aec546b4..bfdc42de4 100644 --- a/wpa_supplicant/wpa_cli.c +++ b/wpa_supplicant/wpa_cli.c @@ -3262,19 +3262,18 @@ static int wpa_cli_cmd_all_bss(struct wpa_ctrl *ctrl, int argc, char *argv[]) #ifdef CONFIG_PASN -static int wpa_cli_cmd_pasn_auth_start(struct wpa_ctrl *ctrl, int argc, - char *argv[]) +static int wpa_cli_cmd_pasn_start(struct wpa_ctrl *ctrl, int argc, 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, - char *argv[]) +static int wpa_cli_cmd_pasn_stop(struct wpa_ctrl *ctrl, int argc, 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, 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, "= list all BSS entries (scan results)" }, #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, "bssid= akmp= cipher= group= nid= = 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, "= Stop PASN authentication" }, { "ptksa_cache_list", wpa_cli_cmd_ptksa_cache_list, NULL,