From: Luis R. Rodriguez Date: Wed, 1 Apr 2009 09:16:25 -0700 Subject: [ath9k-devel] Read and write the EEPROM In-Reply-To: <1238595343.32385.10.camel@mj> References: <7439b3d10904010540p742515b3j669901799c716e63@mail.gmail.com> <1238595343.32385.10.camel@mj> Message-ID: <43e72e890904010916k6eb48030j63c2d0964e435c5d@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Wed, Apr 1, 2009 at 7:15 AM, Pavel Roskin wrote: > On Wed, 2009-04-01 at 14:40 +0200, Giorgio Mazzucchelli wrote: >> 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. > >> 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. 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