aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd_cli.c
diff options
context:
space:
mode:
authorBhagavathi Perumal S <bperumal@codeaurora.org>2018-03-06 09:00:11 (GMT)
committerJouni Malinen <j@w1.fi>2018-03-19 17:14:40 (GMT)
commit2df73f52e8357a2ed1667bed69a867df309566f7 (patch)
treebf02348ecbc78d1a6dbafcd789ff4ecba7742e49 /hostapd/hostapd_cli.c
parentf5701cc66e5a5f236735952029b0e61bb78a0977 (diff)
downloadhostap-2df73f52e8357a2ed1667bed69a867df309566f7.zip
hostap-2df73f52e8357a2ed1667bed69a867df309566f7.tar.gz
hostap-2df73f52e8357a2ed1667bed69a867df309566f7.tar.bz2
Add hostapd_cli poll_sta command
This uses the already existing POLL_STA control interface to poll an associated station to check connectivity. Signed-off-by: Bhagavathi Perumal S <bperumal@codeaurora.org> Signed-off-by: Venkateswara Naralasetty <vnaralas@codeaurora.org>
Diffstat (limited to 'hostapd/hostapd_cli.c')
-rw-r--r--hostapd/hostapd_cli.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c
index e937d9c..fbec5d2 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -1473,6 +1473,13 @@ static int hostapd_cli_cmd_deny_macacl(struct wpa_ctrl *ctrl, int argc,
}
+static int hostapd_cli_cmd_poll_sta(struct wpa_ctrl *ctrl, int argc,
+ char *argv[])
+{
+ return hostapd_cli_cmd(ctrl, "POLL_STA", 1, argc, argv);
+}
+
+
struct hostapd_cli_cmd {
const char *cmd;
int (*handler)(struct wpa_ctrl *ctrl, int argc, char *argv[]);
@@ -1642,6 +1649,8 @@ static const struct hostapd_cli_cmd hostapd_cli_commands[] = {
"=Add/Delete/Show/Clear accept MAC ACL" },
{ "deny_acl", hostapd_cli_cmd_deny_macacl, NULL,
"=Add/Delete/Show/Clear deny MAC ACL" },
+ { "poll_sta", hostapd_cli_cmd_poll_sta, hostapd_complete_stations,
+ "<addr> = poll a STA to check connectivity with a QoS null frame" },
{ NULL, NULL, NULL, NULL }
};