All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Buesch <mb@bu3sch.de>
To: "Gábor Stefanik" <netrolller.3d@gmail.com>
Cc: John Linville <linville@tuxdriver.com>,
	Larry Finger <Larry.Finger@lwfinger.net>,
	Mark Huijgen <mark@huijgen.tk>,
	Broadcom Wireless <bcm43xx-dev@lists.berlios.de>,
	linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] b43: LP-PHY: Fix a few typos in the RC calibration code
Date: Tue, 25 Aug 2009 22:48:56 +0200	[thread overview]
Message-ID: <200908252248.58079.mb@bu3sch.de> (raw)
In-Reply-To: <1251209868-7681-1-git-send-email-netrolller.3d@gmail.com>

On Tuesday 25 August 2009 16:17:48 Gábor Stefanik wrote:
> The RC calibration code has some typos - fix them.
> Also, make the default channel 7, as channel 1 is still
> broken (only channels 7 and 8, and occasionally 9 work).
> 
> Signed-off-by: Gábor Stefanik <netrolller.3d@gmail.com>

ack

> ---
>  drivers/net/wireless/b43/phy_lp.c |    7 ++++---
>  1 files changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/net/wireless/b43/phy_lp.c b/drivers/net/wireless/b43/phy_lp.c
> index 2d3a5d8..7e70c07 100644
> --- a/drivers/net/wireless/b43/phy_lp.c
> +++ b/drivers/net/wireless/b43/phy_lp.c
> @@ -44,7 +44,7 @@ static inline u16 channel2freq_lp(u8 channel)
>  static unsigned int b43_lpphy_op_get_default_chan(struct b43_wldev *dev)
>  {
>  	if (b43_current_band(dev->wl) == IEEE80211_BAND_2GHZ)
> -		return 1;
> +		return 7; //FIXME temporary - channel 1 is broken
>  	return 36;
>  }
>  
> @@ -705,7 +705,7 @@ static void lpphy_set_rc_cap(struct b43_wldev *dev)
>  	u8 rc_cap = (lpphy->rc_cap & 0x1F) >> 1;
>  
>  	if (dev->phy.rev == 1) //FIXME check channel 14!
> -		rc_cap = max_t(u8, rc_cap + 5, 15);
> +		rc_cap = min_t(u8, rc_cap + 5, 15);
>  
>  	b43_radio_write(dev, B2062_N_RXBB_CALIB2,
>  			max_t(u8, lpphy->rc_cap - 4, 0x80));
> @@ -1008,6 +1008,7 @@ static int lpphy_loopback(struct b43_wldev *dev)
>  
>  	b43_phy_maskset(dev, B43_LPPHY_RF_OVERRIDE_VAL_0, 0xFFFC, 0x3);
>  	b43_phy_set(dev, B43_LPPHY_RF_OVERRIDE_0, 0x3);
> +	b43_phy_set(dev, B43_LPPHY_AFE_CTL_OVR, 1);
>  	b43_phy_mask(dev, B43_LPPHY_AFE_CTL_OVRVAL, 0xFFFE);
>  	b43_phy_set(dev, B43_LPPHY_RF_OVERRIDE_0, 0x800);
>  	b43_phy_set(dev, B43_LPPHY_RF_OVERRIDE_VAL_0, 0x800);
> @@ -1213,7 +1214,7 @@ static void lpphy_rev0_1_rc_calib(struct b43_wldev *dev)
>  			mean_sq_pwr = ideal_pwr - normal_pwr;
>  			mean_sq_pwr *= mean_sq_pwr;
>  			inner_sum += mean_sq_pwr;
> -			if ((i = 128) || (inner_sum < mean_sq_pwr_min)) {
> +			if ((i == 128) || (inner_sum < mean_sq_pwr_min)) {
>  				lpphy->rc_cap = i;
>  				mean_sq_pwr_min = inner_sum;
>  			}



-- 
Greetings, Michael.

      reply	other threads:[~2009-08-25 20:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-25 14:17 [PATCH] b43: LP-PHY: Fix a few typos in the RC calibration code Gábor Stefanik
2009-08-25 20:48 ` Michael Buesch [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=200908252248.58079.mb@bu3sch.de \
    --to=mb@bu3sch.de \
    --cc=Larry.Finger@lwfinger.net \
    --cc=bcm43xx-dev@lists.berlios.de \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=mark@huijgen.tk \
    --cc=netrolller.3d@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.