Bug 14719 - ath9k: Unable to create debugfs
Summary: ath9k: Unable to create debugfs
Status: RESOLVED INVALID
Alias: None
Product: Networking
Classification: Unclassified
Component: Wireless (show other bugs)
Hardware: All Linux
: P1 high
Assignee: networking_wireless@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-02 17:48 UTC by Nenad Opsenica
Modified: 2009-12-03 00:20 UTC (History)
2 users (show)

See Also:
Kernel Version: 2.6.30.8 (OpenWRT trunk)
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Nenad Opsenica 2009-12-02 17:48:00 UTC
I'm using compat-wireless-2009-11-21, ath9k is compiled with debugfs support and correctly loads, but it is not possible to reload it. 

Reload sequence is as follows:

MODPATH="/lib/modules/2.6.30.8/"
rmmod ath9k
rmmod ath9k_common
rmmod ath9k_hw
rmmod ath
rmmod mac80211
rmmod cfg80211
insmod ${MODPATH}/cfg80211.ko
insmod ${MODPATH}/mac80211.ko
insmod ${MODPATH}/ath.ko
insmod ${MODPATH}/ath9k_hw.ko
insmod ${MODPATH}/ath9k_common.ko
insmod ${MODPATH}/ath9k.ko

It does not matter if debugfs is mounted or not, result is all the same:

insmod: can't insert '/lib/modules/2.6.30.8//ath9k.ko': unknown symbol in module, or unknown parameter

"dmesg" reports

ath9k: Unable to create debugfs root: -2
Comment 1 Nenad Opsenica 2009-12-02 17:55:47 UTC
I forgot to mention that compat-wireless-2009-11-21 is part of OpenWRT trunk and is patched version, but I believe that most of these patches are included in newer compat-wirelesses.
Comment 2 Luis Chamberlain 2009-12-02 21:38:04 UTC
Is this is an openwrt bug? Are you using openwrt or just the code from it? Have you modified the config.mk for openwrt? Does your kernel have debugfs enabled?
Comment 3 Nenad Opsenica 2009-12-02 22:48:46 UTC
I am using openwrt. 

I did'nt modify config.mk.

Kernel has debugfs enabled; after bootup and first ath9k loading, I can mount debugfs access ath9k debugfs files.

I am not completely sure if bug is introduced by one of openwrt patches to ath9k, but I'm inclined to think that this is not the case. Can someone try reloading ath9k with debugfs enabled (possibly on different platform), just to make it clear if this is something to deal with only on openwrt?
Comment 4 Nenad Opsenica 2009-12-02 22:59:37 UTC
I reported this bug on openwrt trac also, https://dev.openwrt.org/ticket/6283
Comment 5 Luis Chamberlain 2009-12-02 23:18:44 UTC
It works for me, this may be a bogus bug report and please don't use kernel.org bugzilla for bleedinge edge code. Instead just use the linux-wireless mailing list. Please close this up and followup on the mailing list.

Note You need to log in before you can comment on or make changes to this bug.