aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/ctrl_iface.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-02-08 10:16:13 (GMT)
committerJouni Malinen <j@w1.fi>2015-02-08 11:35:49 (GMT)
commit99650cadc9012deade57775c46a4b3df64a9dd6b (patch)
tree109d5d0166332a54e0e2387639d3caf3ef142230 /hostapd/ctrl_iface.c
parent6b005121649882188d2132af86a8f402126e935d (diff)
downloadhostap-99650cadc9012deade57775c46a4b3df64a9dd6b.zip
hostap-99650cadc9012deade57775c46a4b3df64a9dd6b.tar.gz
hostap-99650cadc9012deade57775c46a4b3df64a9dd6b.tar.bz2
Add STOP_AP control interface command
This is mainly for testing purposes to allow beaconing to be stopped without clearing AP state in hostapd. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/ctrl_iface.c')
-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 54b17dc..7d97484 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -1955,6 +1955,9 @@ static void hostapd_ctrl_iface_receive(int sock, void *eloop_ctx,
} else if (os_strncmp(buf, "DISASSOCIATE ", 13) == 0) {
if (hostapd_ctrl_iface_disassociate(hapd, buf + 13))
reply_len = -1;
+ } else if (os_strcmp(buf, "STOP_AP") == 0) {
+ if (hostapd_ctrl_iface_stop_ap(hapd))
+ reply_len = -1;
#ifdef CONFIG_IEEE80211W
#ifdef NEED_AP_MLME
} else if (os_strncmp(buf, "SA_QUERY ", 9) == 0) {