aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/wlantest_cli.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-11-17 19:11:35 (GMT)
committerJouni Malinen <j@w1.fi>2013-11-17 19:39:22 (GMT)
commitc99a721e5b803bc6710aac0583121ef80df38d1a (patch)
tree44617b9d9f20c8af559db87f8adde7fc20448bd1 /wlantest/wlantest_cli.c
parent0e91337d543ce6d1d26e1fc4590e758ef102bfd3 (diff)
downloadhostap-c99a721e5b803bc6710aac0583121ef80df38d1a.zip
hostap-c99a721e5b803bc6710aac0583121ef80df38d1a.tar.gz
hostap-c99a721e5b803bc6710aac0583121ef80df38d1a.tar.bz2
wlantest: Add RELOG command to reopen log/capture files
This can be used similarly to the wpa_supplicant RELOG command to rotate log and capture files. Signed-hostap: Jouni Malinen <j@w1.fi>
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 fe81bfc..afe38c4 100644
--- a/wlantest/wlantest_cli.c
+++ b/wlantest/wlantest_cli.c
@@ -740,6 +740,12 @@ static char ** complete_get_bss_counter(int s, const char *str, int pos)
}
+static int cmd_relog(int s, int argc, char *argv[])
+{
+ return cmd_simple(s, WLANTEST_CTRL_RELOG);
+}
+
+
struct tdls_counters {
const char *name;
enum wlantest_tdls_counter num;
@@ -1496,6 +1502,7 @@ static const struct wlantest_cli_cmd wlantest_cli_commands[] = {
{ "get_bss_counter", cmd_get_bss_counter,
"<counter> <BSSID> = get BSS counter value",
complete_get_bss_counter },
+ { "relog", cmd_relog, "= re-open log-file (allow rolling logs)", NULL },
{ NULL, NULL, NULL, NULL }
};