Read and write the EEPROM
OK, but I would like to know how to read the country code written in the card's EEPROM, and how to set.
Is there any wiki page, any guide or tutorial that explains it? Searching far and wide in this mailing list didn't helped me so much, by now.
Thanks
G.M.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090401/e09de98e/attachment.htm
Quoted 2 lines · Giorgio Mazzucchelli
OK, but I would like to know how to read the country code written in the card's EEPROM, and how to set.
The country code is read from EEPROM in the beginning of ath9k_hw_fill_cap_info() in drivers/net/wireless/ath9k/hw.c. Writing EEPROM is not supported by ath9k.
Quoted 3 lines
Is there any wiki page, any guide or tutorial that explains it? Searching far and wide in this mailing list didn't helped me so much, by now.
The ath9k wiki is here:
http://linuxwireless.org/en/users/Drivers/ath9k
I'm not aware about any resources specifically about reading or writing EEPROM in ath9k.
Signature · 2 lines
Regards, Pavel Roskin
Quoted 12 lines · Pavel Roskin
Quoted 2 lines · Giorgio Mazzucchelli
OK, but I would like to know how to read the country code written in the card's EEPROM, and how to set.
The country code is read from EEPROM in the beginning of
ath9k_hw_fill_cap_info()indrivers/net/wireless/ath9k/hw.c. ?Writing EEPROM is not supported by ath9k.Quoted 3 lines
Is there any wiki page, any guide or tutorial that explains it? Searching far and wide in this mailing list didn't helped me so much, by now.
Quoted 5 lines
The ath9k wiki is here:
http://linuxwireless.org/en/users/Drivers/ath9kI'm not aware about any resources specifically about reading or writing EEPROM in ath9k.
If you write to the EEPROM you could be tuning the device out of calibrated values used and tesed for compliance and therefore it is not supported. Users just do not need this, manufacturers however do.
You can read the value on the EEPROM by enabling the ath9k debug kconfig option, it will be outputed in hex format when loading ath9k.
Luis