aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/hostapd_cli.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-01-02 15:19:04 (GMT)
committerJouni Malinen <j@w1.fi>2014-01-02 15:19:04 (GMT)
commit4c03a2b3e156d39c886abbb3be69fea9639b1f16 (patch)
tree993f70bb0b073779d002112b20eed8794d0959f9 /hostapd/hostapd_cli.c
parentf538be3e82499928c65b9ca781df3f5ab3507738 (diff)
downloadhostap-4c03a2b3e156d39c886abbb3be69fea9639b1f16.zip
hostap-4c03a2b3e156d39c886abbb3be69fea9639b1f16.tar.gz
hostap-4c03a2b3e156d39c886abbb3be69fea9639b1f16.tar.bz2
Make RADIUS server MIB available through control interface
"MIB radius_server" control interface can now be used to fetch the RADIUS server MIB data from hostapd. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/hostapd_cli.c')
-rw-r--r--hostapd/hostapd_cli.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hostapd/hostapd_cli.c b/hostapd/hostapd_cli.c
index b2d3e5b..7a0ef0a 100644
--- a/hostapd/hostapd_cli.c
+++ b/hostapd/hostapd_cli.c
@@ -224,6 +224,11 @@ static int hostapd_cli_cmd_status(struct wpa_ctrl *ctrl, int argc, char *argv[])
static int hostapd_cli_cmd_mib(struct wpa_ctrl *ctrl, int argc, char *argv[])
{
+ if (argc > 0) {
+ char buf[100];
+ os_snprintf(buf, sizeof(buf), "MIB %s", argv[0]);
+ return wpa_ctrl_command(ctrl, buf);
+ }
return wpa_ctrl_command(ctrl, "MIB");
}