add per-sta ucast/mcast stats

MFC after:	1 week
This commit is contained in:
Sam Leffler 2006-08-10 05:37:49 +00:00
parent 75db2abb2e
commit b6e9b119a2

View File

@ -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;