aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd_cli.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-01-02 15:49:48 (GMT)
committerJouni Malinen <j@w1.fi>2014-01-02 15:49:48 (GMT)
commitea23df652a3be2d22f767ed0ffa95ee8f3d4a30e (patch)
treeeeb4fbe6a439ad949f400a55fc7ebc1f9f3d16b3 /hostapd/hostapd_cli.c
parent96ea74b866417ee5d185595c572d2282c10037c3 (diff)
downloadhostap-ea23df652a3be2d22f767ed0ffa95ee8f3d4a30e.zip
hostap-ea23df652a3be2d22f767ed0ffa95ee8f3d4a30e.tar.gz
hostap-ea23df652a3be2d22f767ed0ffa95ee8f3d4a30e.tar.bz2
Make EAPOL dump data available through ctrl_iface STA command
The per-STA/Supplicant state information from the EAPOL authenticator is now available through "STA <MAC Address> eapol" command. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/hostapd_cli.c')
-rw-r--r--hostapd/hostapd_cli.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c
index 7a0ef0a..2706412 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -281,12 +281,15 @@ static void hostapd_cli_action_process(char *msg, size_t len)
static int hostapd_cli_cmd_sta(struct wpa_ctrl *ctrl, int argc, char *argv[])
{
char buf[64];
- if (argc != 1) {
- printf("Invalid 'sta' command - exactly one argument, STA "
+ if (argc < 1) {
+ printf("Invalid 'sta' command - at least one argument, STA "
"address, is required.\n");
return -1;
}
- snprintf(buf, sizeof(buf), "STA %s", argv[0]);
+ if (argc > 1)
+ snprintf(buf, sizeof(buf), "STA %s %s", argv[0], argv[1]);
+ else
+ snprintf(buf, sizeof(buf), "STA %s", argv[0]);
return wpa_ctrl_command(ctrl, buf);
}