aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2016-04-08 16:37:08 (GMT)
committerJouni Malinen <j@w1.fi>2016-04-08 21:30:49 (GMT)
commit1854eeca19e0e83a4d8d1cf055be39e8b8d80655 (patch)
treec68b66c2e75d1f595ff8289028cf1b3d66624b82 /hostapd
parent36533aff3c339a1d8bfee89e2c98756d85d5eb0f (diff)
downloadhostap-1854eeca19e0e83a4d8d1cf055be39e8b8d80655.zip
hostap-1854eeca19e0e83a4d8d1cf055be39e8b8d80655.tar.gz
hostap-1854eeca19e0e83a4d8d1cf055be39e8b8d80655.tar.bz2
Add POLL_STA command to check connectivity in AP mode
The hostapd "POLL_STA <addr>" control interface command can be used to check whether an associated station ACKs a QoS Data frame. The received ACK for such a frame is reported as an event message ("AP-STA-POLL-OK <addr>"). Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/ctrl_iface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index a87f117..6f22f65 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -2153,6 +2153,9 @@ static int hostapd_ctrl_iface_receive_process(struct hostapd_data *hapd,
} else if (os_strncmp(buf, "DISASSOCIATE ", 13) == 0) {
if (hostapd_ctrl_iface_disassociate(hapd, buf + 13))
reply_len = -1;
+ } else if (os_strncmp(buf, "POLL_STA ", 9) == 0) {
+ if (hostapd_ctrl_iface_poll_sta(hapd, buf + 9))
+ reply_len = -1;
} else if (os_strcmp(buf, "STOP_AP") == 0) {
if (hostapd_ctrl_iface_stop_ap(hapd))
reply_len = -1;