From: reinette chatre <reinette.chatre@intel.com>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] iwlagn: avoid sleep in softirq context
Date: Thu, 30 Oct 2008 13:41:05 -0700 [thread overview]
Message-ID: <1225399265.1115.356.camel@rc-desk> (raw)
In-Reply-To: <1225390341-7117-1-git-send-email-linville@tuxdriver.com>
On Thu, 2008-10-30 at 11:12 -0700, John W. Linville wrote:
> __ieee80211_tasklet_handler -> __ieee80211_rx ->
> __ieee80211_rx_handle_packet -> ieee80211_invoke_rx_handlers ->
> ieee80211_rx_h_decrypt -> ieee80211_crypto_tkip_decrypt ->
> ieee80211_tkip_decrypt_data -> iwl4965_mac_update_tkip_key ->
> iwl_scan_cancel_timeout -> msleep
>
> Ooops!
>
> Avoid the sleep by changing iwl_scan_cancel_timeout with
> iwl_scan_cancel and simply returning on failure if the scan persists.
> This will cause hardware decryption to fail and we'll handle a few more
> frames with software decryption.
>
> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Thank you very much
>
> - iwl_scan_cancel_timeout(priv, 100);
> + if (iwl_scan_cancel(priv)) {
> + /* cancel scan failed, just live w/ bad key and rely
> + briefly on SW decrpyption */
Could you please add some debugging (IWL_DEBUG_MAC80211 ) here to log
the problem? Also watch for the small typo.
Reinette
next prev parent reply other threads:[~2008-10-30 20:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-30 18:12 [PATCH] iwlagn: avoid sleep in softirq context John W. Linville
2008-10-30 20:41 ` reinette chatre [this message]
2008-10-31 17:58 ` John W. Linville
2008-11-03 19:26 ` reinette chatre
2008-10-30 21:03 ` reinette chatre
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=1225399265.1115.356.camel@rc-desk \
--to=reinette.chatre@intel.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