From: Stanislaw Gruszka <sgruszka@redhat.com>
To: "Guy, Wey-Yi" <wey-yi.w.guy@intel.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: Tue, 21 Dec 2010 13:05:12 +0100 [thread overview]
Message-ID: <20101221120511.GA2287@redhat.com> (raw)
In-Reply-To: <1292868816.22230.45.camel@wwguy-ubuntu>
Hi Wey
On Mon, Dec 20, 2010 at 10:13:36AM -0800, Guy, Wey-Yi wrote:
> 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];
Is correct to use all antennas on 5GHz when blutooth is enabled?
For me, more logical would be limiting to one antenna no matter of band,
since antennas are used anyway, only frequencies differ.
For rx_ant, we do not check the band, only limit to first one
when bluetooth is used.
Stanislaw
next prev parent reply other threads:[~2010-12-21 12:05 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
2010-12-21 12:05 ` Stanislaw Gruszka [this message]
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=20101221120511.GA2287@redhat.com \
--to=sgruszka@redhat.com \
--cc=ilw@linux.intel.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=wey-yi.w.guy@intel.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).