linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ivo van Doorn <ivdoorn@gmail.com>
To: Gertjan van Wingerde <gwingerde@gmail.com>
Cc: users@rt2x00.serialmonkey.com, linux-wireless@vger.kernel.org,
	Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Subject: Re: [PATCH] rt2x00: Fix rt2800lib RF chip programming selection.
Date: Tue, 10 Nov 2009 19:33:09 +0100	[thread overview]
Message-ID: <200911101933.09747.IvDoorn@gmail.com> (raw)
In-Reply-To: <1257803998-5412-1-git-send-email-gwingerde@gmail.com>

On Monday 09 November 2009, Gertjan van Wingerde wrote:
> Mirror the legacy Ralink driver with respect to rt2800 RF register programming. Execute
> rt2800_config_channel_rt3x for all RF2020, RF3020, RF3021 & RF3022 chipsets when operating on RT3070
> devices.
> 
> Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>

Acked-by: Ivo van Doorn <IvDoorn@gmail.com>

> ---
>  drivers/net/wireless/rt2x00/rt2800lib.c |   10 +++++++---
>  1 files changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
> index 2c91c44..446087e 100644
> --- a/drivers/net/wireless/rt2x00/rt2800lib.c
> +++ b/drivers/net/wireless/rt2x00/rt2800lib.c
> @@ -806,10 +806,14 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev,
>  	unsigned int tx_pin;
>  	u8 bbp;
>  
> -	if (rt2x00_rev(&rt2x00dev->chip) != RT3070_VERSION)
> -		rt2800_config_channel_rt2x(rt2x00dev, conf, rf, info);
> -	else
> +	if (rt2x00_rt(&rt2x00dev->chip, RT3070) &&	
> +           (rt2x00_rf(&rt2x00dev->chip, RF2020) ||
> +	     rt2x00_rf(&rt2x00dev->chip, RF3020) ||
> +	     rt2x00_rf(&rt2x00dev->chip, RF3021) ||
> +	     rt2x00_rf(&rt2x00dev->chip, RF3022)))
>  		rt2800_config_channel_rt3x(rt2x00dev, conf, rf, info);
> +	else
> +		rt2800_config_channel_rt2x(rt2x00dev, conf, rf, info);
>  
>  	/*
>  	 * Change BBP settings



  reply	other threads:[~2009-11-10 18:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-09 21:59 [PATCH] rt2x00: Fix rt2800lib RF chip programming selection Gertjan van Wingerde
2009-11-10 18:33 ` Ivo van Doorn [this message]
2009-11-11 22:07 ` John W. Linville
2009-11-11 23:22   ` Gertjan van Wingerde
2009-11-11 23:35     ` John W. Linville
2009-11-12  0:03       ` Gertjan van Wingerde
  -- strict thread matches above, loose matches on Subject: below --
2009-11-12 19:25 Bartlomiej Zolnierkiewicz

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=200911101933.09747.IvDoorn@gmail.com \
    --to=ivdoorn@gmail.com \
    --cc=bzolnier@gmail.com \
    --cc=gwingerde@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=users@rt2x00.serialmonkey.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).