aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYuhao Zheng <yuhaozheng@google.com>2012-07-27 10:37:52 -0700
committerIrfan Sheriff <isheriff@google.com>2012-08-03 10:14:55 -0700
commitfcd6f21dad589eb6fdba941c98e072ca2664726b (patch)
tree2ca9e110bcd095d09cdb5fec734239afa20f22ca /src
parente78e767aea5576ec0ba7edadfe25fd9dc7dce48f (diff)
downloadexternal_wpa_supplicant_8-fcd6f21dad589eb6fdba941c98e072ca2664726b.zip
external_wpa_supplicant_8-fcd6f21dad589eb6fdba941c98e072ca2664726b.tar.gz
external_wpa_supplicant_8-fcd6f21dad589eb6fdba941c98e072ca2664726b.tar.bz2
Add PKTCNT_POLL command to get TX packet counters
- for the new WiFi watchdog - requires kernel support (see issue 6874044) Change-Id: Ibb59c1e0df6f5422814f2260588651e0e1490ccc
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index d54d0f5..cfcfd6b 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -7338,6 +7338,7 @@ static int get_sta_handler(struct nl_msg *msg, void *arg)
[NL80211_STA_INFO_TX_BYTES] = { .type = NLA_U32 },
[NL80211_STA_INFO_RX_PACKETS] = { .type = NLA_U32 },
[NL80211_STA_INFO_TX_PACKETS] = { .type = NLA_U32 },
+ [NL80211_STA_INFO_TX_FAILED] = { .type = NLA_U32 },
};
nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0),
@@ -7373,6 +7374,9 @@ static int get_sta_handler(struct nl_msg *msg, void *arg)
if (stats[NL80211_STA_INFO_TX_PACKETS])
data->tx_packets =
nla_get_u32(stats[NL80211_STA_INFO_TX_PACKETS]);
+ if (stats[NL80211_STA_INFO_TX_FAILED])
+ data->tx_retry_failed =
+ nla_get_u32(stats[NL80211_STA_INFO_TX_FAILED]);
return NL_SKIP;
}