aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorAlona Solntseva <alona.solntseva@tandemg.com>2019-05-23 09:12:27 (GMT)
committerJouni Malinen <j@w1.fi>2019-05-25 13:17:44 (GMT)
commit6b43264e79d41dfd5766974baa9c43b5f721bbad (patch)
treeb10bf770f09d1d07de395aec88e6005b9a0d7e86 /hostapd
parent312ec34e40fcb580fed1536ccb31a81dd5dc7eb6 (diff)
downloadhostap-6b43264e79d41dfd5766974baa9c43b5f721bbad.zip
hostap-6b43264e79d41dfd5766974baa9c43b5f721bbad.tar.gz
hostap-6b43264e79d41dfd5766974baa9c43b5f721bbad.tar.bz2
hostapd_cli: Add update_beacon command
Add ability to use UPDATE_BEACON with hostapd_cli. The option has been exposed in ctrl_iface already. Signed-off-by: Alona Solntseva <alona.solntseva@tandemg.com> Signed-off-by: Simon Dinkin <simon.dinkin@tandemg.com>
Diffstat (limited to 'hostapd')
-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 23c592a..0460243 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -1214,6 +1214,13 @@ static int hostapd_cli_cmd_disable(struct wpa_ctrl *ctrl, int argc,
}
+static int hostapd_cli_cmd_update_beacon(struct wpa_ctrl *ctrl, int argc,
+ char *argv[])
+{
+ return wpa_ctrl_command(ctrl, "UPDATE_BEACON");
+}
+
+
static int hostapd_cli_cmd_vendor(struct wpa_ctrl *ctrl, int argc, char *argv[])
{
char cmd[256];
@@ -1617,6 +1624,8 @@ static const struct hostapd_cli_cmd hostapd_cli_commands[] = {
"= reload configuration for current interface" },
{ "disable", hostapd_cli_cmd_disable, NULL,
"= disable hostapd on current interface" },
+ { "update_beacon", hostapd_cli_cmd_update_beacon, NULL,
+ "= update Beacon frame contents\n"},
{ "erp_flush", hostapd_cli_cmd_erp_flush, NULL,
"= drop all ERP keys"},
{ "log_level", hostapd_cli_cmd_log_level, NULL,