Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=53cb4791c156908ae634de31949f7f25f8de002b
Commit:     53cb4791c156908ae634de31949f7f25f8de002b
Parent:     7f4c534178722ac9ffb4feae3a4d54e3fbe3f22c
Author:     Adel Gadllah <[EMAIL PROTECTED]>
AuthorDate: Thu Nov 29 17:09:41 2007 +0100
Committer:  John W. Linville <[EMAIL PROTECTED]>
CommitDate: Thu Nov 29 18:08:48 2007 -0500

    mac80211: rate limit wep decrypt failed messages
    
    The attached patch rate limits "WEP decrypt failed (ICV)" to avoid
    flooding the logfiles.
    
    Signed-off-by: Adel Gadllah <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 net/mac80211/wep.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/net/mac80211/wep.c b/net/mac80211/wep.c
index 9bf0e1c..b5f3413 100644
--- a/net/mac80211/wep.c
+++ b/net/mac80211/wep.c
@@ -265,7 +265,8 @@ int ieee80211_wep_decrypt(struct ieee80211_local *local, 
struct sk_buff *skb,
        if (ieee80211_wep_decrypt_data(local->wep_rx_tfm, rc4key, klen,
                                       skb->data + hdrlen + WEP_IV_LEN,
                                       len)) {
-               printk(KERN_DEBUG "WEP decrypt failed (ICV)\n");
+               if (net_ratelimit())
+                       printk(KERN_DEBUG "WEP decrypt failed (ICV)\n");
                ret = -1;
        }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to