On Tue, Feb 4, 2014 at 5:19 PM, Roman Yeryomin <leroi.li...@gmail.com> wrote:
> On 4 February 2014 17:56, Helmut Schaa <helmut.sc...@googlemail.com> wrote:
>>>>> 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?
>
> Yes, from rt2860v2 2.7.1.6 to be precise.
> Yes I did the mac registers init too. There are several new registers
> they initialize. I tried to integrate mac init to the existing
> function. Do you think I should try to do it separately?

No, should be fine that way (for testing) I guess.

Did you check if the interrupt handler is called after setting the
device up (/proc/interrupts)?
Just as a first evidence of life?
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to