[rt2x00-users] [PATCH 3/9] rt2x00: Align RT chipset definitions with vendor driver.

Luis Correia buga at loide.net
Fri Apr 9 06:55:35 UTC 2010


Hi Gertjan,

On Fri, Apr 9, 2010 at 06:38, Gertjan van Wingerde <gwingerde at gmail.com> wrote:
> On 04/09/10 07:10, Gertjan van Wingerde wrote:
>> On 04/09/10 00:28, Felix Fietkau wrote:
>>> On 2010-04-08 11:50 PM, Gertjan van Wingerde wrote:
>>>> Only include definitions for RT chipsets that are also used inside the
>>>> Ralink vendor drivers.
>>>>
>>>> Signed-off-by: Gertjan van Wingerde <gwingerde at gmail.com>
>>>> ---
>>>>  drivers/net/wireless/rt2x00/rt2800lib.c |   13 -------------
>>>>  drivers/net/wireless/rt2x00/rt2x00.h    |    7 +++----
>>>>  2 files changed, 3 insertions(+), 17 deletions(-)
>>>>
>>>> diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
>>>> index 394c8e4..4bc7e09 100644
>>>> --- a/drivers/net/wireless/rt2x00/rt2800lib.c
>>>> +++ b/drivers/net/wireless/rt2x00/rt2800lib.c
>>>> @@ -1209,10 +1209,7 @@ int rt2800_init_registers(struct rt2x00_dev *rt2x00dev)
>>>>     rt2x00_set_field32(&reg, MAX_LEN_CFG_MAX_MPDU, AGGREGATION_SIZE);
>>>>     if ((rt2x00_rt(rt2x00dev, RT2872) &&
>>>>          (rt2x00_rev(rt2x00dev) >= RT2880E_VERSION)) ||
>>>> -       rt2x00_rt(rt2x00dev, RT2880) ||
>>>>         rt2x00_rt(rt2x00dev, RT2883) ||
>>>> -       rt2x00_rt(rt2x00dev, RT2890) ||
>>>> -       rt2x00_rt(rt2x00dev, RT3052) ||
>>>>         (rt2x00_rt(rt2x00dev, RT3070) &&
>>>>          (rt2x00_rev(rt2x00dev) < RT3070_VERSION)))
>>>>             rt2x00_set_field32(&reg, MAX_LEN_CFG_MAX_PSDU, 2);
>>>> @@ -1511,12 +1508,6 @@ int rt2800_init_bbp(struct rt2x00_dev *rt2x00dev)
>>>>             rt2800_bbp_write(rt2x00dev, 105, 0x05);
>>>>     }
>>>>
>>>> -   if (rt2x00_rt(rt2x00dev, RT3052)) {
>>>> -           rt2800_bbp_write(rt2x00dev, 31, 0x08);
>>>> -           rt2800_bbp_write(rt2x00dev, 78, 0x0e);
>>>> -           rt2800_bbp_write(rt2x00dev, 80, 0x08);
>>>> -   }
>>>> -
>>> Why are you removing support for RT3052? IMHO those writes were
>>> necessary, last time I tested the rt2800pci code on the RT3052 WiSoC.
>>
>> That is because I have not been able to find them in any of the Ralink vendor drivers.
>> Actually, none of the Ralink vendor drivers mention an RT chipset that identifies itself
>> as a RT3052. The only mentioning Ive seen is RT305x devices that identify themselves as
>> RT2872 devices, but even for them I haven't found these BBP initializations.
>> That's why I removed this part.
>>
>> I have no problem re-instating this if I can find some evidence that these devices
>> actually exist.
>>
>
> Hold on, I seem to have found something here. And there are more things to be set, according
> to the code I found. However, that code is unclear with respect to how the chip identifies
> itself.
>
> Is it possible for you to found out on you RT3052 WiSoC how the chip identifies itself
> (i.e. what is the contents of the MAC_CSR0 register)?
>
> Helmut, Luis, I know you guys have been experimenting with WiSoC devices as well, what kind
> of devices do you have, and how do these identify themselves?

Here's a list of my devices info:

Fonera 2.0n
root at OpenWrt:/# cat /sys/kernel/debug/ieee80211/phy1/rt2800pci/chipset
rt chip:	2872
rf chip:	0008
revision:	0200

register	base	words	wordsize
csr		4096	512	4
eeprom	0		136	2
bbp		0		128	1
rf		4		4	4
---

SMC WBR14S-N4
root at OpenWrt:/# cat /sys/kernel/debug/ieee80211/phy0/rt2800pci/chipset
rt chip:	2872
rf chip:	0005
revision:	0200

register	base	words	wordsize
csr		4096	512	4
eeprom	0		136	2
bbp		0		128	1
rf		4		4	4
---
Asus RT-N15
root at OpenWrt:/# cat /sys/kernel/debug/ieee80211/phy0/rt2800pci/chipset
rt chip:        2872
rf chip:        0001
revision:       0200

register   base    words   wordsize
csr     4096    512     4
eeprom  0       136     2
bbp     0       128     1
rf      4       4       4


The Asus RT-N15 info was provided by Gabor Juhos.

> ---
> Gertjan

With the patch Helmut provided, my SoC can scan a lot more channels,
but this scanning is passive, as TX is suspected not to be fully
working.


Luis Correia
rt2x00 project admin



More information about the users mailing list