aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorAvraham Stern <avraham.stern@intel.com>2018-08-22 13:46:21 (GMT)
committerJouni Malinen <j@w1.fi>2019-01-02 14:26:11 (GMT)
commitd6e7d4dede2155652c8f621a484d048a6a736c4e (patch)
tree323d19996c7bf697955c9b7b6a24733847ed56e4 /hostapd
parent8d09cf52a50a2e95a5cddc7b2da68fae573cf548 (diff)
downloadhostap-d6e7d4dede2155652c8f621a484d048a6a736c4e.zip
hostap-d6e7d4dede2155652c8f621a484d048a6a736c4e.tar.gz
hostap-d6e7d4dede2155652c8f621a484d048a6a736c4e.tar.bz2
hostapd_cli: Add option to send beacon report request
This new 'req_beacon' command is useful for testing. Signed-off-by: Avraham Stern <avraham.stern@intel.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 4a91cd9..3339924 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -1487,6 +1487,13 @@ static int hostapd_cli_cmd_poll_sta(struct wpa_ctrl *ctrl, int argc,
}
+static int hostapd_cli_cmd_req_beacon(struct wpa_ctrl *ctrl, int argc,
+ char *argv[])
+{
+ return hostapd_cli_cmd(ctrl, "REQ_BEACON", 2, argc, argv);
+}
+
+
struct hostapd_cli_cmd {
const char *cmd;
int (*handler)(struct wpa_ctrl *ctrl, int argc, char *argv[]);
@@ -1660,6 +1667,8 @@ static const struct hostapd_cli_cmd hostapd_cli_commands[] = {
"=Add/Delete/Show/Clear deny MAC ACL" },
{ "poll_sta", hostapd_cli_cmd_poll_sta, hostapd_complete_stations,
"<addr> = poll a STA to check connectivity with a QoS null frame" },
+ { "req_beacon", hostapd_cli_cmd_req_beacon, NULL,
+ "<addr> [req_mode=] <measurement request hexdump> = send a Beacon report request to a station" },
{ NULL, NULL, NULL, NULL }
};