aboutsummaryrefslogtreecommitdiff
path: root/sys/net80211
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2006-08-10 05:37:49 +0000
committerSam Leffler <sam@FreeBSD.org>2006-08-10 05:37:49 +0000
commitb6e9b119a201d3c68e27017af0746dc5033715e6 (patch)
treee585f0ba9504298f28ce200826244d73c4f64a40 /sys/net80211
parent75db2abb2e7241bfdb133136f1bd2e1f39cc0ca3 (diff)
downloadsrc-b6e9b119a201d3c68e27017af0746dc5033715e6.tar.gz
src-b6e9b119a201d3c68e27017af0746dc5033715e6.zip
add per-sta ucast/mcast stats
MFC after: 1 week
Notes
Notes: svn path=/head/; revision=161144
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_output.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c
index c91e38928c3b..73e11fbe86d2 100644
--- a/sys/net80211/ieee80211_output.c
+++ b/sys/net80211/ieee80211_output.c
@@ -767,6 +767,10 @@ ieee80211_encap(struct ieee80211com *ic, struct mbuf *m,
}
IEEE80211_NODE_STAT(ni, tx_data);
+ if (IEEE80211_IS_MULTICAST(wh->i_addr1))
+ IEEE80211_NODE_STAT(ni, tx_mcast);
+ else
+ IEEE80211_NODE_STAT(ni, tx_ucast);
IEEE80211_NODE_STAT_ADD(ni, tx_bytes, datalen);
return m;