[rt2x00-users] [RFC/RFT] rt2x00: use rt2800_config_channel_rt3x for rt2872

Ivo van Doorn ivdoorn at gmail.com
Tue Apr 6 21:27:42 UTC 2010


On Tuesday 06 April 2010, Helmut Schaa wrote:
> rt2872 needs the same rf register setup as rt3070 and rt3090, hence
> use rt2800_config_channel_rt3x instead of rt2800_config_channel_rt2x.
> This change allows me to actually switch channels and hence scan all
> configured channels on the RT305x SoC platform (which uses a rt2872)
> here.
> 
> Signed-off-by: Helmut Schaa <helmut.schaa at googlemail.com>

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

> ---
> 
> Note: it seems like TX isn't working and I end up with a passive scan.
> However, with this patch I can at least switch channels, and RX seems
> to work just fine. That's a great step forward ;)
> 
> Ivo, Gertjan, are you aware of PCI/USB devices using the rt2872 MAC chip
> which would be affected by this patch?
> 
> Luis, if you also have a rt2872 on your SoC please give it a try.
> 
>  drivers/net/wireless/rt2x00/rt2800lib.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
> index 326fce7..c23b8fe 100644
> --- a/drivers/net/wireless/rt2x00/rt2800lib.c
> +++ b/drivers/net/wireless/rt2x00/rt2800lib.c
> @@ -827,7 +827,8 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev,
>  	u8 bbp;
>  
>  	if ((rt2x00_rt(rt2x00dev, RT3070) ||
> -	     rt2x00_rt(rt2x00dev, RT3090)) &&
> +	     rt2x00_rt(rt2x00dev, RT3090) ||
> +	     rt2x00_rt(rt2x00dev, RT2872)) &&
>  	    (rt2x00_rf(rt2x00dev, RF2020) ||
>  	     rt2x00_rf(rt2x00dev, RF3020) ||
>  	     rt2x00_rf(rt2x00dev, RF3021) ||





More information about the users mailing list