From: Johannes Berg <johannes@sipsolutions.net>
To: Adel Gadllah <adel.gadllah@gmail.com>
Cc: linux-wireless@vger.kernel.org, John Linville <linville@tuxdriver.com>
Subject: Re: [PATCH] mac80211: rate limit wep decrypt failed messages
Date: Fri, 30 Nov 2007 12:38:08 +0100 [thread overview]
Message-ID: <1196422688.6058.183.camel@johannes.berg> (raw)
In-Reply-To: <6cf6b73e0711290809q7c8a2050x6daf97b5eb954cbe@mail.gmail.com> (sfid-20071129_160947_895228_70E521FB)
[-- 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 --]
prev parent reply other threads:[~2007-11-30 11:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 16:09 [PATCH] mac80211: rate limit wep decrypt failed messages Adel Gadllah
2007-11-30 11:38 ` Johannes Berg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1196422688.6058.183.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=adel.gadllah@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox