From: wwguy <wey-yi.w.guy@intel.com>
To: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: Intel Linux Wireless <ilw@linux.intel.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [RFC/RFT] iwl3945: use software scanning by default
Date: Tue, 08 Feb 2011 07:50:07 -0800 [thread overview]
Message-ID: <1297180207.20613.41.camel@wwguy-ubuntu> (raw)
In-Reply-To: <1297172211-17448-1-git-send-email-sgruszka@redhat.com>
Hi Stanislaw,
On Tue, 2011-02-08 at 05:36 -0800, Stanislaw Gruszka wrote:
> Looking for some more testing and opinions.
>
> Patch fixes:
> https://bugzilla.redhat.com/show_bug.cgi?id=671366
> and probably some other "very poor performance" bugs reported
> elsewhere.
>
> Sometimes after hardware scanning device is unable to receive frames
> at higher rate, what cause that very slow speed is observed by the users.
>
> To workaround problem we can use software scanning. Patch remove
> "deprecated" warning and make sw scan be used by default on 3945.
>
> On older kernels, in particular 2.6.35, software scanning does not
> fix problem. On my setup, not affected by bug, I can see slow speed
> with software scans on 2.6.35 as well. I'm not quite sure why. Anyway
> on upstream patch works good for me and bug reporter.
>
> ---
> drivers/net/wireless/iwlwifi/iwl-core.h | 4 ++--
> drivers/net/wireless/iwlwifi/iwl3945-base.c | 14 +++-----------
> 2 files changed, 5 insertions(+), 13 deletions(-)
>
> diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h
> index 6e14a7b..9e7a6d1 100644
> --- a/drivers/net/wireless/iwlwifi/iwl-core.h
> +++ b/drivers/net/wireless/iwlwifi/iwl-core.h
> @@ -254,8 +254,8 @@ struct iwl_ops {
> };
>
> struct iwl_mod_params {
> - int sw_crypto; /* def: 0 = using hardware encryption */
> - int disable_hw_scan; /* def: 0 = use h/w scan */
> + int sw_crypto; /* def: HW dependent */
> + int disable_hw_scan; /* def: HW dependent */
> int num_of_queues; /* def: HW dependent */
> int disable_11n; /* def: 0 = 11n capabilities enabled */
> int amsdu_size_8K; /* def: 1 = enable 8K amsdu size */
> diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
> index 10e8034..7d9e234 100644
> --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
> +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
> @@ -94,6 +94,7 @@ MODULE_LICENSE("GPL");
> struct iwl_mod_params iwl3945_mod_params = {
> .sw_crypto = 1,
> .restart_fw = 1,
> + .disable_hw_scan = 1,
> /* the rest are 0 by default */
> };
>
> @@ -3996,16 +3997,8 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e
> priv->contexts[IWL_RXON_CTX_BSS].station_devtype = RXON_DEV_TYPE_ESS;
> priv->contexts[IWL_RXON_CTX_BSS].unused_devtype = RXON_DEV_TYPE_ESS;
>
> - /*
> - * Disabling hardware scan means that mac80211 will perform scans
> - * "the hard way", rather than using device's scan.
> - */
> - if (iwl3945_mod_params.disable_hw_scan) {
> - dev_printk(KERN_DEBUG, &(pdev->dev),
> - "sw scan support is deprecated\n");
> + if (iwl3945_mod_params.disable_hw_scan)
> iwl3945_hw_ops.hw_scan = NULL;
> - }
> -
>
> IWL_DEBUG_INFO(priv, "*** LOAD DRIVER ***\n");
> priv->cfg = cfg;
> @@ -4326,8 +4319,7 @@ MODULE_PARM_DESC(debug, "debug output mask");
> #endif
> module_param_named(disable_hw_scan, iwl3945_mod_params.disable_hw_scan,
> int, S_IRUGO);
> -MODULE_PARM_DESC(disable_hw_scan,
> - "disable hardware scanning (default 0) (deprecated)");
> +MODULE_PARM_DESC(disable_hw_scan, "disable hardware scanning (default 1)");
> module_param_named(fw_restart3945, iwl3945_mod_params.restart_fw, int, S_IRUGO);
> MODULE_PARM_DESC(fw_restart3945, "restart firmware in case of error");
>
don't have much experience with 3945, but not sure setting sw scan by
default is the right choice?
Wey
next prev parent reply other threads:[~2011-02-08 15:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-08 13:36 [RFC/RFT] iwl3945: use software scanning by default Stanislaw Gruszka
2011-02-08 15:50 ` wwguy [this message]
2011-02-09 6:45 ` Stanislaw Gruszka
2011-02-14 12:08 ` Johannes Berg
2011-02-14 12:40 ` Stanislaw Gruszka
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=1297180207.20613.41.camel@wwguy-ubuntu \
--to=wey-yi.w.guy@intel.com \
--cc=ilw@linux.intel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=sgruszka@redhat.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;
as well as URLs for NNTP newsgroup(s).