1 iw: print station retry counters
3 From: Bruno Randolf <br1@einfach.org>
5 Signed-off-by: Bruno Randolf <br1@einfach.org>
8 1 files changed, 8 insertions(+), 0 deletions(-)
12 @@ -48,6 +48,8 @@ static int print_sta_handler(struct nl_m
13 [NL80211_STA_INFO_LLID] = { .type = NLA_U16 },
14 [NL80211_STA_INFO_PLID] = { .type = NLA_U16 },
15 [NL80211_STA_INFO_PLINK_STATE] = { .type = NLA_U8 },
16 + [NL80211_STA_INFO_TX_RETRIES] = { .type = NLA_U32 },
17 + [NL80211_STA_INFO_TX_FAILED] = { .type = NLA_U32 },
20 static struct nla_policy rate_policy[NL80211_RATE_INFO_MAX + 1] = {
21 @@ -96,6 +98,12 @@ static int print_sta_handler(struct nl_m
22 if (sinfo[NL80211_STA_INFO_TX_PACKETS])
23 printf("\n\ttx packets:\t%u",
24 nla_get_u32(sinfo[NL80211_STA_INFO_TX_PACKETS]));
25 + if (sinfo[NL80211_STA_INFO_TX_RETRIES])
26 + printf("\n\ttx retries:\t%u",
27 + nla_get_u32(sinfo[NL80211_STA_INFO_TX_RETRIES]));
28 + if (sinfo[NL80211_STA_INFO_TX_FAILED])
29 + printf("\n\ttx failed:\t%u",
30 + nla_get_u32(sinfo[NL80211_STA_INFO_TX_FAILED]));
31 if (sinfo[NL80211_STA_INFO_SIGNAL])
32 printf("\n\tsignal: \t%d dBm",
33 (int8_t)nla_get_u8(sinfo[NL80211_STA_INFO_SIGNAL]));