aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd_cli.c
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2011-02-06 18:24:16 (GMT)
committerJouni Malinen <j@w1.fi>2011-02-06 18:24:16 (GMT)
commitb41a47c03f7d94c70a2b9e0397947ef01cd3c552 (patch)
tree971d3bfccc77d3b3f4fa8abb5be169d5d9f91498 /hostapd/hostapd_cli.c
parentac6912b5d13614a585d0b7ff6c8b653159c9725c (diff)
downloadhostap-b41a47c03f7d94c70a2b9e0397947ef01cd3c552.zip
hostap-b41a47c03f7d94c70a2b9e0397947ef01cd3c552.tar.gz
hostap-b41a47c03f7d94c70a2b9e0397947ef01cd3c552.tar.bz2
hostapd: Allow logging to file
Also supports 'relog' CLI command to re-open the log file. Signed-off-by: Ben Greear <greearb@candelatech.com>
Diffstat (limited to 'hostapd/hostapd_cli.c')
-rw-r--r--hostapd/hostapd_cli.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c
index 7cc84bb..618ec26 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -221,6 +221,12 @@ static int hostapd_cli_cmd_ping(struct wpa_ctrl *ctrl, int argc, char *argv[])
}
+static int hostapd_cli_cmd_relog(struct wpa_ctrl *ctrl, int argc, char *argv[])
+{
+ return wpa_ctrl_command(ctrl, "RELOG");
+}
+
+
static int hostapd_cli_cmd_mib(struct wpa_ctrl *ctrl, int argc, char *argv[])
{
return wpa_ctrl_command(ctrl, "MIB");
@@ -698,6 +704,7 @@ struct hostapd_cli_cmd {
static struct hostapd_cli_cmd hostapd_cli_commands[] = {
{ "ping", hostapd_cli_cmd_ping },
{ "mib", hostapd_cli_cmd_mib },
+ { "relog", hostapd_cli_cmd_relog },
{ "sta", hostapd_cli_cmd_sta },
{ "all_sta", hostapd_cli_cmd_all_sta },
{ "new_sta", hostapd_cli_cmd_new_sta },