Hi,

I've been debugging wifi on a couple of Lantiq units, Easybox 802 and 803, both with Ralink wireless (RT2860 and RT3062, respectively). It seems that rt2x00_eeprom_read function expects EEPROM to be little-endian, whereas on these units it is stored big-endian in flash. As a result wireless does not work (well, it miraculously works on 802, but unoptimally).

I tried to simply patch the 10-rt2x00-eeprom hotplug script to use dd's conv=swab when copying the EEPROM, but dd in OpenWrt doesn't support it. What would be the best place to do the byte swapping? Maybe a variable int swab = 1 in rt2x00 platform_data and a function which does the swap when passing the EEPROM to the driver?

Best regards,
Matti Laakso
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to