On 04 Feb 2014, at 17:56, Helmut Schaa <helmut.sc...@googlemail.com> wrote:

> On Tue, Feb 4, 2014 at 4:40 PM, Roman Yeryomin <leroi.li...@gmail.com> wrote:
>> Thanks for answer, Helmut!
>> 
>> On 3 February 2014 18:01, Helmut Schaa <helmut.sc...@googlemail.com> wrote:
>>> On Sat, Feb 1, 2014 at 1:08 AM, Roman Yeryomin <leroi.li...@gmail.com> 
>>> wrote:
>>>> Unfortunately I have no experience in wifi drivers and this is my
>>>> first one. Even worse I don't know what those register (rfcsr and bbp)
>>>> writes _should_ do because they are not in datasheet (I suppose the
>>>> earlier chips rf registers are not documented also).
>>> 
>>> Yep, there are no documents out there as far as I know :/
>> 
>> So it's mostly just magic and assumptions...
>> 
>>>> Attaching the patches hoping somebody with more experience could help
>>>> or at least give an advise. The patches are not very clean and
>>>> probably some things can be done in a different way but that's not the
>>>> point right now.
>>>> 
>>>> Currently wifi interface appears in the system and can be enabled but
>>>> `iw dev wlan0 scan' gives no result and wlan0 transmits one packet
>>>> roughly in 10 minutes as per ifconfig (ssid doesn't appear in the
>>>> air).
>>>> `iw phy' output looks like this:
>>> 
>>> Maybe you should start with a simple monitor interface to get the RX
>>> path working (iw phy phy0 interface add mon0 type monitor).
>>> Just run a tcpdump on mon0 and see if you can receive something (with
>>> your patches applied).
>> 
>> Unfortunately it doesn't give any results.
>> Also rx counter was always zero - I forgot to mention that.
>> What I thought was suspicious is "Available Antennas: TX 0 RX 0" in iw
>> phy output, but I've checked other chips which do work and they all
>> have the same record.
> 
> Yeah, rt2x00 does not initialize these AFAIK.
> 
> So, you ported the code from the ralink rt2860 driver, right?
> I haven't looked into newer ralink chips at all. Did you check if any MAC
> layer changes regarding RX and TX rings exist?
> 

In rt2800lib.c function rt2800_get_txwi_rxwi_size()
Add case MT7620 with RT5592.

                *txwi_size = TXWI_DESC_SIZE_5WORDS;
                *rxwi_size = RXWI_DESC_SIZE_6WORDS;
                break;


> helmut
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to