aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/ctrl_iface_ap.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-12-27 17:24:24 (GMT)
committerJouni Malinen <j@w1.fi>2013-12-27 17:35:12 (GMT)
commitb76f4c27638fe7b57a931c7e8b63386aebc536fb (patch)
tree6797c996bf5ac8dcd5b9442fb30de1c99a39c0a4 /src/ap/ctrl_iface_ap.c
parentaa03dbd517d7ec1e1d981e7ae548e8ff3405d1f7 (diff)
downloadhostap-b76f4c27638fe7b57a931c7e8b63386aebc536fb.zip
hostap-b76f4c27638fe7b57a931c7e8b63386aebc536fb.tar.gz
hostap-b76f4c27638fe7b57a931c7e8b63386aebc536fb.tar.bz2
hostapd: Make STA flags available through ctrl_iface STA command
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/ap/ctrl_iface_ap.c')
-rw-r--r--src/ap/ctrl_iface_ap.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ap/ctrl_iface_ap.c b/src/ap/ctrl_iface_ap.c
index 4125fd5..0d46ea0 100644
--- a/src/ap/ctrl_iface_ap.c
+++ b/src/ap/ctrl_iface_ap.c
@@ -56,12 +56,22 @@ static int hostapd_ctrl_iface_sta_mib(struct hostapd_data *hapd,
}
len = 0;
- ret = os_snprintf(buf + len, buflen - len, MACSTR "\n",
+ ret = os_snprintf(buf + len, buflen - len, MACSTR "\nflags=",
MAC2STR(sta->addr));
if (ret < 0 || (size_t) ret >= buflen - len)
return len;
len += ret;
+ ret = ap_sta_flags_txt(sta->flags, buf + len, buflen - len);
+ if (ret < 0)
+ return len;
+ len += ret;
+
+ ret = os_snprintf(buf + len, buflen - len, "\n");
+ if (ret < 0 || (size_t) ret >= buflen - len)
+ return len;
+ len += ret;
+
res = ieee802_11_get_mib_sta(hapd, sta, buf + len, buflen - len);
if (res >= 0)
len += res;