I've been doing some disassembly on the binary HAL and it seems i got the function that sets the channel on RF2425, it seems different from the one we are using so that might be the problem.
I also found that for each phy chip there is a set of functions like this: (unknown -seems to alocate arrays for initial values, nothing much) initvals -> the function that writes the RF specific initial register settings (what we do inside initvals.c) (unknown - a case statement) channel -> the function that sets the channel on RF (we do that in phy.c) rfregs -> the function that writes rf buffer settings (we do that in phy.c) power_table -> the function that sets up the pcdac table for each channel (we haven't implement that yet) (unknown -returns always true on RF5111) nf -> a function that seems to normalize noise floor using a static table (we haven't implemented that either) "initvals" seems trivial, it just reads a static table and writes the settings like we do our implementation of "channel" seems ok for 5111 and 5112-5413, we miss some bits related to register 0xa204 but seems easy to implement, "channel" implementation is different for 2425 but i'm on it ;-) our implementation of "rfregs" seems to be ok for 5111, it misses some stuff for 5112 (working on it) and we have to implement it for 2413+ chips (they don't do much changes but we have to implement them right) we have no implementation for "power table" at all and until we have all of the calibration data from eeprom (check out latest ath_info updates) i don't think it's worth working on it we have no implementation for "nf" but it doesn't seem difficult to implement, i'll work on it after i'm done with other stuff (e.g. "channel" for 2425) Also i have some great news, seems i now have all registers and masks needed to implement ANI, it took some time but i think i'm right. I also got lucky because i found a static table with many registers and their names/masks on a memory dump of a device that was runing art -atheros radio test-, expect a major update on reg.h ;-) I'll get back to you with patches when i got some time to work... -- GPG ID: 0xD21DB2DB As you read this post global entropy rises. Have Fun ;-) Nick _______________________________________________ ath5k-devel mailing list ath5k-devel@lists.ath5k.org https://lists.ath5k.org/mailman/listinfo/ath5k-devel