]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_cli: Add neighbor_rep_request command
authorAssaf Krauss <assaf.krauss@intel.com>
Wed, 5 Nov 2014 08:42:52 +0000 (03:42 -0500)
committerJouni Malinen <j@w1.fi>
Sat, 22 Nov 2014 19:29:41 +0000 (21:29 +0200)
Add neighbor_rep_request command to send a Neighbor Report Request
to the associated AP.

Signed-off-by: Assaf Krauss <assaf.krauss@intel.com>
wpa_supplicant/wpa_cli.c

index 7d456ae609b798e95782c2d9f81d0beb6cdd9f22..b6d3701aa0446303c443c8d33caf2cf1b4387048 100644 (file)
@@ -2503,6 +2503,13 @@ static int wpa_cli_cmd_radio_work(struct wpa_ctrl *ctrl, int argc, char *argv[])
 }
 
 
+static int wpa_cli_cmd_neighbor_rep_request(struct wpa_ctrl *ctrl, int argc,
+                                           char *argv[])
+{
+       return wpa_cli_cmd(ctrl, "NEIGHBOR_REP_REQUEST", 0, argc, argv);
+}
+
+
 enum wpa_cli_cmd_flags {
        cli_cmd_flag_none               = 0x00,
        cli_cmd_flag_sensitive          = 0x01
@@ -3011,6 +3018,9 @@ static struct wpa_cli_cmd wpa_cli_commands[] = {
        { "vendor", wpa_cli_cmd_vendor, NULL, cli_cmd_flag_none,
          "<vendor id> <command id> [<hex formatted command argument>] = Send vendor command"
        },
+       { "neighbor_rep_request", wpa_cli_cmd_neighbor_rep_request, NULL,
+         cli_cmd_flag_none,
+         "= Trigger request to AP for neighboring AP report"},
        { NULL, NULL, NULL, cli_cmd_flag_none, NULL }
 };