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
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.
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?
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?
I reported this bug on openwrt trac also, https://dev.openwrt.org/ticket/6283
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.