aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd_cli.c
diff options
context:
space:
mode:
authorKyeyoon Park <kyeyoonp@qca.qualcomm.com>2013-04-05 15:41:26 (GMT)
committerJouni Malinen <j@w1.fi>2013-05-20 08:13:40 (GMT)
commitd5b559b6418c2bd09663e0d09e93a6592357fdce (patch)
treee2f2645d8aaf66e580d688d63d556ba33671b1c6 /hostapd/hostapd_cli.c
parentf65f539d9ac1fb7b990d1345329f5bb411428ed7 (diff)
downloadhostap-d5b559b6418c2bd09663e0d09e93a6592357fdce.zip
hostap-d5b559b6418c2bd09663e0d09e93a6592357fdce.tar.gz
hostap-d5b559b6418c2bd09663e0d09e93a6592357fdce.tar.bz2
WNM: Add disassociation timeout processing for ESS_DISASSOC
The hostapd_cli ess_disassoc command now takes three arguments (STA MAC address, timeout in ms, URL) and the STA is disconnected after the specified timeout. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd/hostapd_cli.c')
-rw-r--r--hostapd/hostapd_cli.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c
index a8a8dfb..661f709 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -588,14 +588,14 @@ static int hostapd_cli_cmd_ess_disassoc(struct wpa_ctrl *ctrl, int argc,
char buf[300];
int res;
- if (argc < 2) {
- printf("Invalid 'ess_disassoc' command - two arguments (STA "
- "addr and URL) are needed\n");
+ if (argc < 3) {
+ printf("Invalid 'ess_disassoc' command - three arguments (STA "
+ "addr, disassoc timer, and URL) are needed\n");
return -1;
}
- res = os_snprintf(buf, sizeof(buf), "ESS_DISASSOC %s %s",
- argv[0], argv[1]);
+ res = os_snprintf(buf, sizeof(buf), "ESS_DISASSOC %s %s %s",
+ argv[0], argv[1], argv[2]);
if (res < 0 || res >= (int) sizeof(buf))
return -1;
return wpa_ctrl_command(ctrl, buf);