aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_cli.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-10-27 08:58:52 (GMT)
committerJouni Malinen <j@w1.fi>2015-11-26 17:44:14 (GMT)
commit2ea2166d5aafe4d8361612ee404b49236cb15b0f (patch)
treee9a050f13d0d0ceb9e1b42f393db1801a3b8f501 /wpa_supplicant/wpa_cli.c
parent4ead7cfd5d7dfe2f80ffe5b744291b2e149321eb (diff)
downloadhostap-2ea2166d5aafe4d8361612ee404b49236cb15b0f.zip
hostap-2ea2166d5aafe4d8361612ee404b49236cb15b0f.tar.gz
hostap-2ea2166d5aafe4d8361612ee404b49236cb15b0f.tar.bz2
Add control interface command for aborting an ongoing scan
The new ABORT_SCAN command can be used to request an ongoing scan to be aborted. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/wpa_cli.c')
-rw-r--r--wpa_supplicant/wpa_cli.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index 37d4ff4..275bf39 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -1770,6 +1770,13 @@ static int wpa_cli_cmd_scan_results(struct wpa_ctrl *ctrl, int argc,
}
+static int wpa_cli_cmd_abort_scan(struct wpa_ctrl *ctrl, int argc,
+ char *argv[])
+{
+ return wpa_ctrl_command(ctrl, "ABORT_SCAN");
+}
+
+
static int wpa_cli_cmd_bss(struct wpa_ctrl *ctrl, int argc, char *argv[])
{
return wpa_cli_cmd(ctrl, "BSS", 1, argc, argv);
@@ -3029,6 +3036,9 @@ static const struct wpa_cli_cmd wpa_cli_commands[] = {
{ "scan_results", wpa_cli_cmd_scan_results, NULL,
cli_cmd_flag_none,
"= get latest scan results" },
+ { "abort_scan", wpa_cli_cmd_abort_scan, NULL,
+ cli_cmd_flag_none,
+ "= request ongoing scan to be aborted" },
{ "bss", wpa_cli_cmd_bss, wpa_cli_complete_bss,
cli_cmd_flag_none,
"<<idx> | <bssid>> = get detailed scan result info" },