From: "Guy, Wey-Yi" <wey-yi.w.guy@intel.com>
To: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: Intel Linux Wireless <ilw@linux.intel.com>,
Johannes Berg <johannes@sipsolutions.net>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] iwlagn: fix scan tx antenna setting on 5Ghz band
Date: Mon, 20 Dec 2010 10:13:36 -0800 [thread overview]
Message-ID: <1292868816.22230.45.camel@wwguy-ubuntu> (raw)
In-Reply-To: <1292864713-2756-1-git-send-email-sgruszka@redhat.com>
Hi Stanislaw,
On Mon, 2010-12-20 at 09:05 -0800, Stanislaw Gruszka wrote:
> Looks that we do not set correctly antennas when scanning
> on 5Ghz band and when bluetooth is enabled, because
> priv->cfg->scan_tx_antennas[band] is only defined for
> IEEE80211_BAND_2GHZ. This fix choose first valid antenna.
>
> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
> ---
> drivers/net/wireless/iwlwifi/iwl-agn-lib.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
> index 4bc82fc..099039c 100644
> --- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
> +++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
> @@ -1499,8 +1499,7 @@ int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
> priv->cfg->bt_params->advanced_bt_coexist &&
> priv->bt_full_concurrent) {
> /* operated as 1x1 in full concurrency mode */
> - scan_tx_antennas = first_antenna(
> - priv->cfg->scan_tx_antennas[band]);
> + scan_tx_antennas = first_antenna(scan_tx_antennas);
If its is 2.4, we need to use the correct tx antenna, I think we can
remove this block of code all together since check already done above.
if (priv->cfg->scan_tx_antennas[band])
scan_tx_antennas = priv->cfg->scan_tx_antennas[band];
Wey
next prev parent reply other threads:[~2010-12-20 18:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-20 17:05 [PATCH] iwlagn: fix scan tx antenna setting on 5Ghz band Stanislaw Gruszka
2010-12-20 18:13 ` Guy, Wey-Yi [this message]
2010-12-21 12:05 ` Stanislaw Gruszka
2010-12-21 17:21 ` Guy, Wey-Yi
2010-12-22 13:15 ` Stanislaw Gruszka
2010-12-22 16:57 ` Guy, Wey-Yi
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=1292868816.22230.45.camel@wwguy-ubuntu \
--to=wey-yi.w.guy@intel.com \
--cc=ilw@linux.intel.com \
--cc=johannes@sipsolutions.net \
--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).