diff options
author | Andriy Tkachuk <andrit@ukr.net> | 2010-02-02 15:58:53 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-02-02 16:03:38 -0500 |
commit | d0833a6a2dbc169aba3abcc0904e5aea348bb4d3 (patch) | |
tree | f62a428f00957cc5c2ba0a6d70579ed64e7d647f /net/wireless/lib80211_crypt_tkip.c | |
parent | ab5132a26236e308c6d3d832a3e04fca351656d8 (diff) | |
download | linux-stable-d0833a6a2dbc169aba3abcc0904e5aea348bb4d3.tar.gz linux-stable-d0833a6a2dbc169aba3abcc0904e5aea348bb4d3.tar.bz2 linux-stable-d0833a6a2dbc169aba3abcc0904e5aea348bb4d3.zip |
lib80211: Cosmetics - make room for MIC/CRC near the actual calculation
Signed-off-by: Andriy V. Tkachuk <andrit@ukr.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/lib80211_crypt_tkip.c')
-rw-r--r-- | net/wireless/lib80211_crypt_tkip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/wireless/lib80211_crypt_tkip.c b/net/wireless/lib80211_crypt_tkip.c index c36287399d7e..c6a3cae1f85e 100644 --- a/net/wireless/lib80211_crypt_tkip.c +++ b/net/wireless/lib80211_crypt_tkip.c @@ -384,9 +384,8 @@ static int lib80211_tkip_encrypt(struct sk_buff *skb, int hdr_len, void *priv) if ((lib80211_tkip_hdr(skb, hdr_len, rc4key, 16, priv)) < 0) return -1; - icv = skb_put(skb, 4); - crc = ~crc32_le(~0, pos, len); + icv = skb_put(skb, 4); icv[0] = crc; icv[1] = crc >> 8; icv[2] = crc >> 16; |