aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ctrl_iface.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-09-28 14:19:30 (GMT)
committerJouni Malinen <j@w1.fi>2013-09-28 14:19:30 (GMT)
commita771c07dfc621c5fdd1483643fcc467d760d5e9d (patch)
treeb738b91a35a42ae4d60ebb5aa8df9a7100527974 /wpa_supplicant/ctrl_iface.c
parent739faee2a99184c8b2608dc7618a22442375a3c0 (diff)
downloadhostap-a771c07dfc621c5fdd1483643fcc467d760d5e9d.zip
hostap-a771c07dfc621c5fdd1483643fcc467d760d5e9d.tar.gz
hostap-a771c07dfc621c5fdd1483643fcc467d760d5e9d.tar.bz2
Add driver status information to control interface
STATUS-DRIVER command can now be used to fetch driver interface status information. This is mainly for exporting low-level driver interface information for debug purposes. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/ctrl_iface.c')
-rw-r--r--wpa_supplicant/ctrl_iface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index cd1bb56..6f2fc5d 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -1414,6 +1414,8 @@ static int wpa_supplicant_ctrl_iface_status(struct wpa_supplicant *wpa_s,
char *pos, *end, tmp[30];
int res, verbose, wps, ret;
+ if (os_strcmp(params, "-DRIVER") == 0)
+ return wpa_drv_status(wpa_s, buf, buflen);
verbose = os_strcmp(params, "-VERBOSE") == 0;
wps = os_strcmp(params, "-WPS") == 0;
pos = buf;