Skip to contentSkip to conversation

Read and write the EEPROM

ath9k-devel Giorgio Mazzucchelli 3 participants 3 messages Apr 1, 2009

lore
Share & tools
lore
#1 lore raw
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
#2 lore raw
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() 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.

Quoted 5 lines

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.

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