aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2014-12-29 06:41:08 (GMT)
committerJouni Malinen <j@w1.fi>2015-01-04 21:06:31 (GMT)
commit8b48e3200680f71ae083b84793e6bdc2099416d2 (patch)
treec6137dbb14322dd9defef267917ca929179c92d5 /wpa_supplicant
parentfb375883f48700bab1d43ac8bc2cb08a24cd2ba6 (diff)
downloadhostap-8b48e3200680f71ae083b84793e6bdc2099416d2.zip
hostap-8b48e3200680f71ae083b84793e6bdc2099416d2.tar.gz
hostap-8b48e3200680f71ae083b84793e6bdc2099416d2.tar.bz2
wpa_cli: Add MAC address randomization in scan
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/wpa_cli.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index 673da59..d2face0 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -2537,6 +2537,13 @@ static int wpa_cli_cmd_erp_flush(struct wpa_ctrl *ctrl, int argc, char *argv[])
}
+static int wpa_cli_cmd_mac_rand_scan(struct wpa_ctrl *ctrl, int argc,
+ char *argv[])
+{
+ return wpa_cli_cmd(ctrl, "MAC_RAND_SCAN", 1, argc, argv);
+}
+
+
enum wpa_cli_cmd_flags {
cli_cmd_flag_none = 0x00,
cli_cmd_flag_sensitive = 0x01
@@ -3063,6 +3070,11 @@ static struct wpa_cli_cmd wpa_cli_commands[] = {
},
{ "erp_flush", wpa_cli_cmd_erp_flush, NULL, cli_cmd_flag_none,
"= flush ERP keys" },
+ { "mac_rand_scan",
+ wpa_cli_cmd_mac_rand_scan, NULL, cli_cmd_flag_none,
+ "<scan|sched|pno|all> enable=<0/1> [addr=mac-address "
+ "mask=mac-address-mask] = scan MAC randomization"
+ },
{ NULL, NULL, NULL, cli_cmd_flag_none, NULL }
};