1 iw: add signal average to station information
3 From: Bruno Randolf <br1@einfach.org>
9 2 files changed, 4 insertions(+), 0 deletions(-)
13 @@ -1183,6 +1183,7 @@ enum nl80211_sta_info {
14 NL80211_STA_INFO_TX_PACKETS,
15 NL80211_STA_INFO_TX_RETRIES,
16 NL80211_STA_INFO_TX_FAILED,
17 + NL80211_STA_INFO_SIGNAL_AVG,
20 __NL80211_STA_INFO_AFTER_LAST,
23 @@ -107,6 +107,9 @@ static int print_sta_handler(struct nl_m
24 if (sinfo[NL80211_STA_INFO_SIGNAL])
25 printf("\n\tsignal: \t%d dBm",
26 (int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL]));
27 + if (sinfo[NL80211_STA_INFO_SIGNAL_AVG])
28 + printf("\n\tsignal avg:\t%d dBm",
29 + (int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL_AVG]));
31 if (sinfo[NL80211_STA_INFO_TX_BITRATE]) {
32 if (nla_parse_nested(rinfo, NL80211_RATE_INFO_MAX,