From fad14af93a77891f650c928c67020e0c232b80ca Mon Sep 17 00:00:00 2001 From: Assaf Krauss Date: Wed, 5 Nov 2014 03:42:52 -0500 Subject: [PATCH] wpa_cli: Add neighbor_rep_request command Add neighbor_rep_request command to send a Neighbor Report Request to the associated AP. Signed-off-by: Assaf Krauss --- wpa_supplicant/wpa_cli.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c index 7d456ae60..b6d3701aa 100644 --- a/wpa_supplicant/wpa_cli.c +++ b/wpa_supplicant/wpa_cli.c @@ -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, " [] = 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 } };