Enabling debug on Ath9k
As far as I have learn, the first step to read the card's EEPROM is to enabling debug, correct me if I'm wrong.
Here they are the steps that I have follow:
in *config.mk*
added *CONFIG_ATH9K_DEBUG=y *
then* make *&&* make install* in compat wireless' directory
problem: where I can find this configuration menu? *make menuconfig* in which directory?
Device Drivers --->
[*] Network device support --->
Wireless LAN --->
<M> Atheros 802.11n wireless cards support
[*] Atheros ath9k debugging
The issue is that I can't see any 'debug' parameter for ath9k module, take a look:
modinfo ath9k
filename:/lib/modules/2.6.28-9-generic/updates/drivers/net/wireless/ath9k/ath9k.ko
license: Dual BSD/GPL description: Support for Atheros 802.11n wireless LAN cards. author: Atheros Communications srcversion: 0E00038F566194A06BE4261 alias: pci:v0000168Cd0000002Bsv*sd*bc*sc*i* alias: pci:v0000168Cd0000002Asv*sd*bc*sc*i* alias: pci:v0000168Cd00000029sv*sd*bc*sc*i* alias: pci:v0000168Cd00000027sv*sd*bc*sc*i* alias: pci:v0000168Cd00000024sv*sd*bc*sc*i* alias: pci:v0000168Cd00000023sv*sd*bc*sc*i* depends: led-class,mac80211,cfg80211 vermagic: 2.6.28-9-generic SMP mod_unload modversions 586 parm: nohwcrypt:Disable hardware encryption (int) parm: btcoex_enable:Enable Bluetooth coexistence support (bool)
Then,
*modprobe ath9k debug=*0xo... should return me the regulatory info write in the EEPROM
and
*modprobe cfg80211 ieee80211_regdom=*(the country code that I want) should let me set the country code
Might anyone tell me if it's right?
Thank you
G.M.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090402/b51cec38/attachment.htm
Quoted 2 lines · Giorgio Mazzucchelli
As far as I have learn, the first step to read the card's EEPROM is to enabling debug, correct me if I'm wrong.
EEPROM is read by ath9k regardless of whether debugging is enabled or not.
Quoted 6 lines
Here they are the steps that I have follow:
in config.mk
addedCONFIG_ATH9K_DEBUG=y
then make && make install in compat wireless' directory
Quoted 7 lines
problem: where I can find this configuration menu? make menuconfig in which directory?
Device Drivers --->
[*] Network device support --->
Wireless LAN --->
<M> Atheros 802.11n wireless cards support
[*] Atheros ath9k debugging
Sorry, I haven't touched compat-wireless for a long time.
Quoted 19 lines
The issue is that I can't see any 'debug' parameter for ath9k module, take a look:
modinfo ath9k
filename: /lib/modules/2.6.28-9-generic/updates/drivers/net/wireless/ath9k/ath9k.ko license: Dual BSD/GPL description: Support for Atheros 802.11n wireless LAN cards. author: Atheros Communications srcversion: 0E00038F566194A06BE4261 alias: pci:v0000168Cd0000002Bsv*sd*bc*sc*i* alias: pci:v0000168Cd0000002Asv*sd*bc*sc*i* alias: pci:v0000168Cd00000029sv*sd*bc*sc*i* alias: pci:v0000168Cd00000027sv*sd*bc*sc*i* alias: pci:v0000168Cd00000024sv*sd*bc*sc*i* alias: pci:v0000168Cd00000023sv*sd*bc*sc*i* depends: led-class,mac80211,cfg80211 vermagic: 2.6.28-9-generic SMP mod_unload modversions 586 parm: nohwcrypt:Disable hardware encryption (int) parm: btcoex_enable:Enable Bluetooth coexistence support
Quoted 1 line
(bool)
It means that CONFIG_ATH9K_DEBUG wasn't enabled. If I enable it, I see 3 parameters:
parm: debug:uint parm: nohwcrypt:Disable hardware encryption (int) parm: btcoex_enable:Enable Bluetooth coexistence support (bool)
Quoted 3 lines
Then,
modprobe ath9k debug=0xo... should return me the regulatory info write in the EEPROM
It would load the module. If you need any specific information, you can just add a printk() statement in the place where the code is read.
Quoted 3 lines
and
modprobe cfg80211 ieee80211_regdom=(the country code that I want) should let me set the country code
That should work.
Signature · 2 lines
Regards, Pavel Roskin