* [PATCH] mac80211: rate limit wep decrypt failed messages
@ 2007-11-29 16:09 Adel Gadllah
2007-11-30 11:38 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Adel Gadllah @ 2007-11-29 16:09 UTC (permalink / raw)
To: linux-wireless; +Cc: johannes
The attached patch rate limits "WEP decrypt failed (ICV)" to avoid
flooding the logfiles.
Signed-off-by: Adel Gadllah <adel.gadllah@gmx.net>
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;
}
-
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] mac80211: rate limit wep decrypt failed messages
2007-11-29 16:09 [PATCH] mac80211: rate limit wep decrypt failed messages Adel Gadllah
@ 2007-11-30 11:38 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2007-11-30 11:38 UTC (permalink / raw)
To: Adel Gadllah; +Cc: linux-wireless, John Linville
[-- Attachment #1: Type: text/plain, Size: 830 bytes --]
On Thu, 2007-11-29 at 17:09 +0100, Adel Gadllah wrote:
> The attached patch rate limits "WEP decrypt failed (ICV)" to avoid
> flooding the logfiles.
>
> Signed-off-by: Adel Gadllah <adel.gadllah@gmx.net>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
>
> 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;
> }
> -
>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-30 11:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-29 16:09 [PATCH] mac80211: rate limit wep decrypt failed messages Adel Gadllah
2007-11-30 11:38 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox