diff options
author | David S. Miller <davem@davemloft.net> | 2009-03-17 14:29:22 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-17 14:29:22 -0700 |
commit | f10023a4ef3f5cc05457b059c6880bc447adfa1f (patch) | |
tree | e5d229bb9719b0be27289a6736d2e22254da06f0 /net/wireless/lib80211_crypt_tkip.c | |
parent | 4ada8107f465b97326751de66d3c11ed78bf8214 (diff) | |
parent | 640c65eae673d2caf6e7bf61c1eb4e9513b88fda (diff) | |
download | op-kernel-dev-f10023a4ef3f5cc05457b059c6880bc447adfa1f.zip op-kernel-dev-f10023a4ef3f5cc05457b059c6880bc447adfa1f.tar.gz |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Diffstat (limited to 'net/wireless/lib80211_crypt_tkip.c')
-rw-r--r-- | net/wireless/lib80211_crypt_tkip.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/wireless/lib80211_crypt_tkip.c b/net/wireless/lib80211_crypt_tkip.c index 7e8e22b..c362873 100644 --- a/net/wireless/lib80211_crypt_tkip.c +++ b/net/wireless/lib80211_crypt_tkip.c @@ -465,12 +465,14 @@ static int lib80211_tkip_decrypt(struct sk_buff *skb, int hdr_len, void *priv) pos += 8; if (tkip_replay_check(iv32, iv16, tkey->rx_iv32, tkey->rx_iv16)) { +#ifdef CONFIG_LIB80211_DEBUG if (net_ratelimit()) { printk(KERN_DEBUG "TKIP: replay detected: STA=%pM" " previous TSC %08x%04x received TSC " "%08x%04x\n", hdr->addr2, tkey->rx_iv32, tkey->rx_iv16, iv32, iv16); } +#endif tkey->dot11RSNAStatsTKIPReplays++; return -4; } @@ -505,10 +507,12 @@ static int lib80211_tkip_decrypt(struct sk_buff *skb, int hdr_len, void *priv) * it needs to be recalculated for the next packet. */ tkey->rx_phase1_done = 0; } +#ifdef CONFIG_LIB80211_DEBUG if (net_ratelimit()) { printk(KERN_DEBUG "TKIP: ICV error detected: STA=" "%pM\n", hdr->addr2); } +#endif tkey->dot11RSNAStatsTKIPICVErrors++; return -5; } |