]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd_cli: Add option to send beacon report request
authorAvraham Stern <avraham.stern@intel.com>
Wed, 22 Aug 2018 13:46:21 +0000 (16:46 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 2 Jan 2019 14:26:11 +0000 (16:26 +0200)
This new 'req_beacon' command is useful for testing.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
hostapd/hostapd_cli.c

index 4a91cd93dede6cf4283637bb7003a2853a446be8..3339924ebf26eefb4c87fc6785107afb62faaf22 100644 (file)
@@ -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 }
 };