aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/ctrl_iface.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2015-02-09 17:56:32 (GMT)
committerJouni Malinen <j@w1.fi>2015-02-09 17:56:32 (GMT)
commit9ff8dda12f530d77ad39df926fa298ca06cf29e1 (patch)
treee5764aa534ad3a1a67b954cb9c581a77024ccc5e /hostapd/ctrl_iface.c
parente0761c5b4a5c8cee13f286502e735ffae569aa77 (diff)
downloadhostap-9ff8dda12f530d77ad39df926fa298ca06cf29e1.zip
hostap-9ff8dda12f530d77ad39df926fa298ca06cf29e1.tar.gz
hostap-9ff8dda12f530d77ad39df926fa298ca06cf29e1.tar.bz2
Add hostapd UPDATE_BEACON ctrl_iface command
This can be used to ask Beacon frames to be updated explicitly, e.g., after a dynamic configuration parameter change. This can also be used to start beaconing on an interface that was started with start_disabled=1. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'hostapd/ctrl_iface.c')
-rw-r--r--hostapd/ctrl_iface.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index 7d97484..86f1aa6 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -40,6 +40,7 @@
#include "ap/hs20.h"
#include "ap/wnm_ap.h"
#include "ap/wpa_auth.h"
+#include "ap/beacon.h"
#include "wps/wps_defs.h"
#include "wps/wps.h"
#include "config_file.h"
@@ -2050,6 +2051,9 @@ static void hostapd_ctrl_iface_receive(int sock, void *eloop_ctx,
} else if (os_strncmp(buf, "DISABLE", 7) == 0) {
if (hostapd_ctrl_iface_disable(hapd->iface))
reply_len = -1;
+ } else if (os_strcmp(buf, "UPDATE_BEACON") == 0) {
+ if (ieee802_11_set_beacon(hapd))
+ reply_len = -1;
#ifdef CONFIG_TESTING_OPTIONS
} else if (os_strncmp(buf, "RADAR ", 6) == 0) {
if (hostapd_ctrl_iface_radar(hapd, buf + 6))