aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2018-06-22 16:32:46 (GMT)
committerJouni Malinen <j@w1.fi>2018-06-22 16:37:18 (GMT)
commitabed6136ae254ce4c4225ce719680482e9f654a8 (patch)
treeb0c2ea58db24b5a05c3f6af9d34f02c41ca39d62 /hostapd
parent72aad113c2f2e8cc526bcbca9f70765f56b34a02 (diff)
downloadhostap-abed6136ae254ce4c4225ce719680482e9f654a8.zip
hostap-abed6136ae254ce4c4225ce719680482e9f654a8.tar.gz
hostap-abed6136ae254ce4c4225ce719680482e9f654a8.tar.bz2
RADIUS: Add DAC implementation in hostapd(AS)
The new DAC_REQUEST control interface command can now be used to request hostapd to send out Disconnect-Request and CoA-Request packets for an existing session. DAC_REQUEST <disconnect|coa> <MAC Address> [t_c_clear] Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/ctrl_iface.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index 8e3dcc4..2d68e88 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -3203,6 +3203,11 @@ static int hostapd_ctrl_iface_receive_process(struct hostapd_data *hapd,
if (hostapd_dpp_pkex_remove(hapd, buf + 16) < 0)
reply_len = -1;
#endif /* CONFIG_DPP */
+#ifdef RADIUS_SERVER
+ } else if (os_strncmp(buf, "DAC_REQUEST ", 12) == 0) {
+ if (radius_server_dac_request(hapd->radius_srv, buf + 12) < 0)
+ reply_len = -1;
+#endif /* RADIUS_SERVER */
} else {
os_memcpy(reply, "UNKNOWN COMMAND\n", 16);
reply_len = 16;