]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8dab23b3dcbc07eeaa6250ab8dde6f88aee1c629
tree58cfb7fc4e89db0a75fbcd7d61cac0267c0a9856
parent4a286ba02efa152828e94072b82305fa51e80f34
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