aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd
diff options
context:
space:
mode:
authorKevin Mahoney <k.mahoney@cablelabs.com>2016-10-18 22:07:13 (GMT)
committerJouni Malinen <j@w1.fi>2016-10-28 21:55:49 (GMT)
commita818425d1ca23f25f3752d81a53ec64a43728890 (patch)
tree381fc2125932e1146898e338e502706a4f887e72 /hostapd
parenta1047f55b8a56bddf46c064c9e328fe3e30321b3 (diff)
downloadhostap-a818425d1ca23f25f3752d81a53ec64a43728890.zip
hostap-a818425d1ca23f25f3752d81a53ec64a43728890.tar.gz
hostap-a818425d1ca23f25f3752d81a53ec64a43728890.tar.bz2
hostapd: Added signal level to STA tracking
Add signal level information to the station tracking information. Also make it available via the "TRACK_STA_LIST" control command. Signed-off-by: Kevin Mahoney <k.mahoney@cablelabs.com>
Diffstat (limited to 'hostapd')
-rw-r--r--hostapd/ctrl_iface.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c
index dadc4b7..68751de 100644
--- a/hostapd/ctrl_iface.c
+++ b/hostapd/ctrl_iface.c
@@ -2083,8 +2083,9 @@ static int hostapd_ctrl_iface_track_sta_list(struct hostapd_data *hapd,
int ret;
os_reltime_sub(&now, &info->last_seen, &age);
- ret = os_snprintf(pos, end - pos, MACSTR " %u\n",
- MAC2STR(info->addr), (unsigned int) age.sec);
+ ret = os_snprintf(pos, end - pos, MACSTR " %u %d\n",
+ MAC2STR(info->addr), (unsigned int) age.sec,
+ info->ssi_signal);
if (os_snprintf_error(end - pos, ret))
break;
pos += ret;