aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_cli.c
diff options
context:
space:
mode:
authorVinayak Kamath <vkamat@codeaurora.org>2013-05-16 14:50:31 (GMT)
committerJouni Malinen <j@w1.fi>2013-05-16 14:50:31 (GMT)
commit65bcd0a92d798c97209e4f2cc1fee0da90b66fb3 (patch)
tree1ab097772a5994a1c16cb3e7c6afba7aa4f7844b /wpa_supplicant/wpa_cli.c
parente27d20bb6828d98e21122ad967703b1b862f50f1 (diff)
downloadhostap-65bcd0a92d798c97209e4f2cc1fee0da90b66fb3.zip
hostap-65bcd0a92d798c97209e4f2cc1fee0da90b66fb3.tar.gz
hostap-65bcd0a92d798c97209e4f2cc1fee0da90b66fb3.tar.bz2
WNM: Add sending of BSS Transition Management Query
The new control interface command can be used to send a BSS Transition Management Query frame to the current AP. Signed-hostap: Vinayak Kamath <vkamat@codeaurora.org>
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 d2d5dd9..0727e92 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -2293,6 +2293,12 @@ static int wpa_cli_cmd_wnm_sleep(struct wpa_ctrl *ctrl, int argc, char *argv[])
return wpa_cli_cmd(ctrl, "WNM_SLEEP", 0, argc, argv);
}
+
+static int wpa_cli_cmd_wnm_bss_query(struct wpa_ctrl *ctrl, int argc, char *argv[])
+{
+ return wpa_cli_cmd(ctrl, "WNM_BSS_QUERY", 1, argc, argv);
+}
+
#endif /* CONFIG_WNM */
@@ -2754,6 +2760,8 @@ static struct wpa_cli_cmd wpa_cli_commands[] = {
#ifdef CONFIG_WNM
{ "wnm_sleep", wpa_cli_cmd_wnm_sleep, NULL, cli_cmd_flag_none,
"<enter/exit> [interval=#] = enter/exit WNM-Sleep mode" },
+ { "wnm_bss_query", wpa_cli_cmd_wnm_bss_query, NULL, cli_cmd_flag_none,
+ "<query reason> = Send BSS Transition Management Query" },
#endif /* CONFIG_WNM */
{ "raw", wpa_cli_cmd_raw, NULL, cli_cmd_flag_sensitive,
"<params..> = Sent unprocessed command" },