[PATCH 08/12] wpa_cli: Add neighbor_rep_request command

Ilan Peer ilan.peer
Wed Nov 5 00:42:52 PST 2014


From: Assaf Krauss <assaf.krauss at intel.com>

Add neighbor_rep_request command to send a Neighbor Report Request
to the associated AP.

Signed-off-by: Assaf Krauss <assaf.krauss at intel.com>
---
 wpa_supplicant/wpa_cli.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index 2bb3b65..8937c62 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -2464,6 +2464,12 @@ 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
@@ -2953,6 +2959,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 }
 };
 
-- 
1.8.3.2




More information about the Hostap mailing list