From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Roskin Date: Thu, 02 Apr 2009 12:24:56 -0400 Subject: [ath9k-devel] Enabling debug on Ath9k In-Reply-To: <7439b3d10904020557x39f5051bu5f8d6d889d8cbba4@mail.gmail.com> References: <7439b3d10904020557x39f5051bu5f8d6d889d8cbba4@mail.gmail.com> Message-ID: <1238689496.1675.11.camel@mj> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Thu, 2009-04-02 at 14:57 +0200, Giorgio Mazzucchelli wrote: > 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. > 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 ---> > Atheros 802.11n wireless cards support > [*] Atheros ath9k debugging Sorry, I haven't touched compat-wireless for a long time. > 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) 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) > 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. > and > modprobe cfg80211 ieee80211_regdom=(the country code that I want) > should let me set the country code That should work. -- Regards, Pavel Roskin