aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/wlantest_cli.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-11-18 15:36:08 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-18 15:36:08 (GMT)
commitd356bd630b6876866ca70e177a2b9eca13fb1e35 (patch)
treeb70652d7f2843e301b0277ae59fac0cd77f728da /wlantest/wlantest_cli.c
parent6f2346c144f8f7ee8973f0db841558e339fb9b15 (diff)
downloadhostap-d356bd630b6876866ca70e177a2b9eca13fb1e35.zip
hostap-d356bd630b6876866ca70e177a2b9eca13fb1e35.tar.gz
hostap-d356bd630b6876866ca70e177a2b9eca13fb1e35.tar.bz2
wlantest: Add flush command for dropping all BSS data
Diffstat (limited to 'wlantest/wlantest_cli.c')
-rw-r--r--wlantest/wlantest_cli.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/wlantest/wlantest_cli.c b/wlantest/wlantest_cli.c
index 7ba5ff1..ee8d0cc 100644
--- a/wlantest/wlantest_cli.c
+++ b/wlantest/wlantest_cli.c
@@ -163,6 +163,12 @@ static int cmd_list_sta(int s, int argc, char *argv[])
}
+static int cmd_flush(int s, int argc, char *argv[])
+{
+ return cmd_simple(s, WLANTEST_CTRL_FLUSH);
+}
+
+
struct wlantest_cli_cmd {
const char *cmd;
int (*handler)(int s, int argc, char *argv[]);
@@ -174,6 +180,7 @@ static const struct wlantest_cli_cmd wlantest_cli_commands[] = {
{ "terminate", cmd_terminate, "= terminate wlantest" },
{ "list_bss", cmd_list_bss, "= get BSS list" },
{ "list_sta", cmd_list_sta, "<BSSID> = get STA list" },
+ { "flush", cmd_flush, "= drop all collected BSS data" },
{ NULL, NULL, NULL }
};