aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd_cli.c
diff options
context:
space:
mode:
authorErik Ljungberg <erik.ljungberg@sonymobile.com>2016-07-04 09:25:39 (GMT)
committerJouni Malinen <j@w1.fi>2016-07-23 17:46:20 (GMT)
commit4d7aab78bd11d6ff15f769761221e67b1160e562 (patch)
treef1cba24576ac5cfc8b22a48f25387f4653b2ec68 /hostapd/hostapd_cli.c
parent77d468e4db6afd5426002372bf71b14ec3f33a44 (diff)
downloadhostap-4d7aab78bd11d6ff15f769761221e67b1160e562.zip
hostap-4d7aab78bd11d6ff15f769761221e67b1160e562.tar.gz
hostap-4d7aab78bd11d6ff15f769761221e67b1160e562.tar.bz2
Make driver flags available through control interface
This shows the current set of driver flags in wpa_cli and hostapd_cli. Signed-off-by: Erik Ljungberg <erik.ljungberg@sonymobile.com>
Diffstat (limited to 'hostapd/hostapd_cli.c')
-rw-r--r--hostapd/hostapd_cli.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c
index ff133f6..5c1f297 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -1218,6 +1218,13 @@ static int hostapd_cli_cmd_req_range(struct wpa_ctrl *ctrl, int argc,
}
+static int hostapd_cli_cmd_driver_flags(struct wpa_ctrl *ctrl, int argc,
+ char *argv[])
+{
+ return wpa_ctrl_command(ctrl, "DRIVER_FLAGS");
+}
+
+
struct hostapd_cli_cmd {
const char *cmd;
int (*handler)(struct wpa_ctrl *ctrl, int argc, char *argv[]);
@@ -1283,6 +1290,7 @@ static const struct hostapd_cli_cmd hostapd_cli_commands[] = {
{ "remove_neighbor", hostapd_cli_cmd_remove_neighbor },
{ "req_lci", hostapd_cli_cmd_req_lci },
{ "req_range", hostapd_cli_cmd_req_range },
+ { "driver_flags", hostapd_cli_cmd_driver_flags },
{ NULL, NULL }
};