aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_cli.c
diff options
context:
space:
mode:
authorOla Olsson <ola1olsson@gmail.com>2015-01-27 23:22:06 (GMT)
committerJouni Malinen <j@w1.fi>2015-02-08 20:49:58 (GMT)
commit10263dc2a436a2c69a3a80592a803ad170792472 (patch)
treea6868ee2a29992351893bcd65b56fe2cd186efae /wpa_supplicant/wpa_cli.c
parent2265376271c43e60fe2f94dfcdb33da82e0e1a9f (diff)
downloadhostap-10263dc2a436a2c69a3a80592a803ad170792472.zip
hostap-10263dc2a436a2c69a3a80592a803ad170792472.tar.gz
hostap-10263dc2a436a2c69a3a80592a803ad170792472.tar.bz2
Add control interface commands for fetching wpa_config values
The new "DUMP" and "SET <variable>" control interface commands can be used to fetch global wpa_supplicant configuration parameters. Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Diffstat (limited to 'wpa_supplicant/wpa_cli.c')
-rw-r--r--wpa_supplicant/wpa_cli.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index af08e13..5a0af0d 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -658,6 +658,11 @@ static char ** wpa_cli_complete_set(const char *str, int pos)
return NULL;
}
+static int wpa_cli_cmd_dump(struct wpa_ctrl *ctrl, int argc, char *argv[])
+{
+ return wpa_ctrl_command(ctrl, "DUMP");
+}
+
static int wpa_cli_cmd_get(struct wpa_ctrl *ctrl, int argc, char *argv[])
{
@@ -2616,6 +2621,9 @@ static struct wpa_cli_cmd wpa_cli_commands[] = {
cli_cmd_flag_none,
"= set variables (shows list of variables when run without "
"arguments)" },
+ { "dump", wpa_cli_cmd_dump, NULL,
+ cli_cmd_flag_none,
+ "= dump config variables" },
{ "get", wpa_cli_cmd_get, NULL,
cli_cmd_flag_none,
"<name> = get information" },