wpa_supplicant: Support 'relog' command to re-open log files
This allows rolling log files: mv log.txt log.txt.1 wpa_cli relog Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
parent
3103f34576
commit
ac6912b5d1
4 changed files with 47 additions and 0 deletions
|
@ -278,6 +278,12 @@ static int wpa_cli_cmd_ping(struct wpa_ctrl *ctrl, int argc, char *argv[])
|
|||
}
|
||||
|
||||
|
||||
static int wpa_cli_cmd_relog(struct wpa_ctrl *ctrl, int argc, char *argv[])
|
||||
{
|
||||
return wpa_ctrl_command(ctrl, "RELOG");
|
||||
}
|
||||
|
||||
|
||||
static int wpa_cli_cmd_note(struct wpa_ctrl *ctrl, int argc, char *argv[])
|
||||
{
|
||||
char cmd[256];
|
||||
|
@ -2164,6 +2170,9 @@ static struct wpa_cli_cmd wpa_cli_commands[] = {
|
|||
{ "ping", wpa_cli_cmd_ping,
|
||||
cli_cmd_flag_none,
|
||||
"= pings wpa_supplicant" },
|
||||
{ "relog", wpa_cli_cmd_relog,
|
||||
cli_cmd_flag_none,
|
||||
"= re-open log-file (allow rolling logs)" },
|
||||
{ "note", wpa_cli_cmd_note,
|
||||
cli_cmd_flag_none,
|
||||
"<text> = add a note to wpa_supplicant debug log" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue