2013-06-11 16:40:13

by George Nychis

[permalink] [raw]
Subject: where is ath9k debugfs?

I have configured my kernel to use ath9k debugfs:
$ grep ATH9K_DEBUGFS /boot/config-`uname -r`
CONFIG_ATH9K_DEBUGFS=y

The location of these debugfs files should be in
/sys/kernel/debug/ath9k according to:
http://wireless.kernel.org/en/users/Drivers/ath9k/debug#Debugfs_files_for_ath9k

However, when I load the modules and plug in an ath9k device, I do not
get any ath9k debugfs files:
root@parallels:/sys# find /sys -name ath9k
root@parallels:/sys# find /sys -name rx_chainmask
root@parallels:/sys# find /sys -name disable_ani
root@parallels:/sys#

I do get the ieee80211 debug, though:
# ls -l /sys/kernel/debug/ieee80211/
total 0
drwxr-xr-x 6 root root 0 Jun 11 12:30 phy0

Do I need to pass some parameter to the kernel module on load to get
the ath9k debugfs? Am I missing something else?

Thanks!
George


2013-06-11 22:59:13

by Pat Erley

[permalink] [raw]
Subject: Re: where is ath9k debugfs?

On 06/11/2013 12:40 PM, George Nychis wrote:
> I have configured my kernel to use ath9k debugfs:
> $ grep ATH9K_DEBUGFS /boot/config-`uname -r`
> CONFIG_ATH9K_DEBUGFS=y
>
> The location of these debugfs files should be in
> /sys/kernel/debug/ath9k according to:
> http://wireless.kernel.org/en/users/Drivers/ath9k/debug#Debugfs_files_for_ath9k
>
> However, when I load the modules and plug in an ath9k device, I do not
> get any ath9k debugfs files:
> root@parallels:/sys# find /sys -name ath9k
> root@parallels:/sys# find /sys -name rx_chainmask
> root@parallels:/sys# find /sys -name disable_ani
> root@parallels:/sys#
>
> I do get the ieee80211 debug, though:
> # ls -l /sys/kernel/debug/ieee80211/
> total 0
> drwxr-xr-x 6 root root 0 Jun 11 12:30 phy0
>
> Do I need to pass some parameter to the kernel module on load to get
> the ath9k debugfs? Am I missing something else?
>
> Thanks!
> George

Hi George,

When you say 'plug in an ath9k device' I assume you mean you plug it in
before you boot? There aren't any ath9k devices that I know of that use
USB. I believe they're all handled by ath9k_htc.

Aside from that, you found the right spot
(/sys/kernel/debug/ieee80211/phyN) for it to live. What does dmesg say
when you plug in/boot with the device?

Pat

2013-06-14 18:21:25

by George Nychis

[permalink] [raw]
Subject: Re: where is ath9k debugfs?

Hi Pat,

You're correct on this. I always seem to forget about the distinction
between ath9k and ath_htc. Thanks a bunch!

- George

On Tue, Jun 11, 2013 at 6:51 PM, Pat Erley <[email protected]> wrote:
> On 06/11/2013 12:40 PM, George Nychis wrote:
>>
>> I have configured my kernel to use ath9k debugfs:
>> $ grep ATH9K_DEBUGFS /boot/config-`uname -r`
>> CONFIG_ATH9K_DEBUGFS=y
>>
>> The location of these debugfs files should be in
>> /sys/kernel/debug/ath9k according to:
>>
>> http://wireless.kernel.org/en/users/Drivers/ath9k/debug#Debugfs_files_for_ath9k
>>
>> However, when I load the modules and plug in an ath9k device, I do not
>> get any ath9k debugfs files:
>> root@parallels:/sys# find /sys -name ath9k
>> root@parallels:/sys# find /sys -name rx_chainmask
>> root@parallels:/sys# find /sys -name disable_ani
>> root@parallels:/sys#
>>
>> I do get the ieee80211 debug, though:
>> # ls -l /sys/kernel/debug/ieee80211/
>> total 0
>> drwxr-xr-x 6 root root 0 Jun 11 12:30 phy0
>>
>> Do I need to pass some parameter to the kernel module on load to get
>> the ath9k debugfs? Am I missing something else?
>>
>> Thanks!
>> George
>
>
> Hi George,
>
> When you say 'plug in an ath9k device' I assume you mean you plug it in
> before you boot? There aren't any ath9k devices that I know of that use
> USB. I believe they're all handled by ath9k_htc.
>
> Aside from that, you found the right spot (/sys/kernel/debug/ieee80211/phyN)
> for it to live. What does dmesg say when you plug in/boot with the device?
>
> Pat