aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_cli.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-11-07 14:16:15 (GMT)
committerJouni Malinen <j@w1.fi>2013-11-22 18:23:08 (GMT)
commit5e2c3490d5a59b6a9aebb9a5d094318d6bc6b779 (patch)
treed5068b310b6baff100ceba9d8cc0a5de0477cbeb /wpa_supplicant/wpa_cli.c
parent0de3803610f402d10d54f8bb7b5e77490485c009 (diff)
downloadhostap-5e2c3490d5a59b6a9aebb9a5d094318d6bc6b779.zip
hostap-5e2c3490d5a59b6a9aebb9a5d094318d6bc6b779.tar.gz
hostap-5e2c3490d5a59b6a9aebb9a5d094318d6bc6b779.tar.bz2
Android: Add driver_cmd for arbitrary driver commands
This is a mechanism used in Android to extend driver interface in vendor specific ways. This is included only for the purpose of Android compatibility. Proper interface commands should be used for any new functionality. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/wpa_cli.c')
-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 c689e8f..aabaa3c 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -2412,6 +2412,14 @@ static int wpa_cli_cmd_raw(struct wpa_ctrl *ctrl, int argc, char *argv[])
}
+#ifdef ANDROID
+static int wpa_cli_cmd_driver(struct wpa_ctrl *ctrl, int argc, char *argv[])
+{
+ return wpa_cli_cmd(ctrl, "DRIVER", 1, argc, argv);
+}
+#endif /* ANDROID */
+
+
static int wpa_cli_cmd_flush(struct wpa_ctrl *ctrl, int argc, char *argv[])
{
return wpa_ctrl_command(ctrl, "FLUSH");
@@ -2881,6 +2889,10 @@ static struct wpa_cli_cmd wpa_cli_commands[] = {
"<params..> = Sent unprocessed command" },
{ "flush", wpa_cli_cmd_flush, NULL, cli_cmd_flag_none,
"= flush wpa_supplicant state" },
+#ifdef ANDROID
+ { "driver", wpa_cli_cmd_driver, NULL, cli_cmd_flag_none,
+ "<command> = driver private commands" },
+#endif /* ANDROID */
{ NULL, NULL, NULL, cli_cmd_flag_none, NULL }
};