Hello again!

On 11 Feb 2014, at 19:12, Mikko Hissa <mikko.hi...@werzek.com> wrote:

> Hello!
> 
> On 01 Feb 2014, at 02:08, Roman Yeryomin <leroi.li...@gmail.com> wrote:
> 
>> Hello everybody!
>> I'm trying to get mt7620 (ramips target, rt-n14u board) wifi working
>> but no luck. I have ported init functions and channel setup from the
>> original (known to be working) driver. The original driver (and
>> datasheet) is available in the web.
>> 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).
>> 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.
>> 
> 
> I took a quick look at your patches and one thing caught my eye...
> In rt2800.h you have:
> +#define RF_CSR_CFG_REGNUM_MT7620     FIELD32(0x00ff0000)
> 8bit mask for register number AND bank id? I think it should be 2ff (10bits) 
> because

That 2ff should, of course, be 3ff. 

> in rfcsr_write you are doing:
> +                     rt2x00_set_field32(&reg, RF_CSR_CFG_REGNUM_MT7620, 
> word);
> where the word contains up to 6bits of register number AND 4bits of bank id.
> So those writes above bank no. 3 are not happening.
> 
>> 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:
>> 
> 
> Best Regards,
> Mikko
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to