On 2011-10-09 10:49 AM, abhinav narain wrote:

I am adding the following lines to the code :

static void __exit ath9k_exit(void)
{
         is_ath9k_unloaded = true;
         ath_ahb_exit();
         ath_pci_exit();
         ath_rate_control_unregister();
         printk(KERN_INFO "%s:*I added this* Driver unloaded\n", dev_info);
*  printk(KERN_INFO "abhinav init ");*
}
module_exit(ath9k_exit);

I don't even get these printk(() output on dmesg !
when i do :

rmmod ath9k.o

I am following exactly what you have said above.
I am not doing package/mac80211/{clean,compile}
after package/mac80211/update
and loading the image on the router.

Please help, I am out of creativity of trying anything new on this thing.
You're probably editing in the wrong place. OpenWrt does not use mac80211 or ath9k from build_dir/linux-ar71xx_generic/linux-2.6.39.4.
What you're interested in is in
build_dir/linux-ar71xx_generic/compat-wireless-*/
I suggest you read up on how to use quilt for managing patches on packages, the OpenWrt package that this build dir belongs to is package/mac80211. After you modify it, don't run make package/mac80211/clean, that'll throw away all of your modifications :)

- Felix
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to