summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-04-08 04:51:43 +0000
committeradrian <adrian@FreeBSD.org>2012-04-08 04:51:43 +0000
commit78124cfe1df116396dde4e2de4b76b94d0a5967a (patch)
tree56ca12352943148d3ecfb9f204344f36c918dadc /tools
parentf16af2226ba072844f58cb8b0d7fcbd4f48ec99d (diff)
downloadFreeBSD-src-78124cfe1df116396dde4e2de4b76b94d0a5967a.zip
FreeBSD-src-78124cfe1df116396dde4e2de4b76b94d0a5967a.tar.gz
Teach wlanstats about the new BAR TX statistics.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/net80211/wlanstats/wlanstats.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/tools/net80211/wlanstats/wlanstats.c b/tools/tools/net80211/wlanstats/wlanstats.c
index 61821f1..820fc9e 100644
--- a/tools/tools/net80211/wlanstats/wlanstats.c
+++ b/tools/tools/net80211/wlanstats/wlanstats.c
@@ -372,6 +372,12 @@ static const struct fmt wlanstats[] = {
{ 5, "signal", "sig", "current signal (dBm)" },
#define S_BEACON_BAD AFTER(S_SIGNAL)
{ 9, "beacon_bad", "beaconbad", "bad beacons received" },
+#define S_AMPDU_BARTX AFTER(S_BEACON_BAD)
+ { 5, "ampdu_bartx", "bartx", "BAR frames sent" },
+#define S_AMPDU_BARTX_FAIL AFTER(S_AMPDU_BARTX)
+ { 9, "ampdu_bartxfail", "bartx_fail", "BAR frames failed to send" },
+#define S_AMPDU_BARTX_RETRY AFTER(S_AMPDU_BARTX_FAIL)
+ { 10, "ampdu_bartxretry", "bartx_retry", "BAR frames retried" },
};
struct wlanstatfoo_p {
@@ -817,6 +823,9 @@ wlan_get_curstat(struct statfoo *sf, int s, char b[], size_t bs)
case S_TX_UCAST: NSTAT(tx_ucast);
case S_TX_MCAST: NSTAT(tx_mcast);
case S_BEACON_BAD: STAT(beacon_bad);
+ case S_AMPDU_BARTX: STAT(ampdu_bar_tx);
+ case S_AMPDU_BARTX_RETRY: STAT(ampdu_bar_tx_retry);
+ case S_AMPDU_BARTX_FAIL: STAT(ampdu_bar_tx_fail);
}
return wlan_getinfo(wf, s, b, bs);
#undef NSTAT
@@ -976,6 +985,9 @@ wlan_get_totstat(struct statfoo *sf, int s, char b[], size_t bs)
case S_TX_UCAST: NSTAT(tx_ucast);
case S_TX_MCAST: NSTAT(tx_mcast);
case S_BEACON_BAD: STAT(beacon_bad);
+ case S_AMPDU_BARTX: STAT(ampdu_bar_tx);
+ case S_AMPDU_BARTX_RETRY: STAT(ampdu_bar_tx_retry);
+ case S_AMPDU_BARTX_FAIL: STAT(ampdu_bar_tx_fail);
}
return wlan_getinfo(wf, s, b, bs);
#undef NSTAT
OpenPOWER on IntegriCloud