mac80211: take statistics before encryption
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 10 Aug 2009 14:01:54 +0000 (16:01 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Aug 2009 13:13:57 +0000 (09:13 -0400)
commitfeff1f2fea3fc7ee055e46d0fbdb2d25ad2b14c4
tree58cfb7fc4e89db0a75fbcd7d61cac0267c0a9856
parent5e68ff6563ef79d87296c70f8eb2bee454d3fe75
mac80211: take statistics before encryption

When encryption is used, the number of bytes
sent to the peer increases by the IV and ICV.
This is accounted if software encryption is
used, but not if the devices does hardware
encryption. To make the numbers comparable,
never account for that overhead.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/tx.c