Can't remove kernel module ath9k

I need to run qualcomm ART program on openwrt and need to remove ATH9K driver, but I find this module can't be removed, it always prompts to remove failure, there should be some dependencies, but I can't find which module it is dependent on

root@Openwrt:~# lsmod |grep ath
ath                    17523  3 ath9k,ath9k_common,ath9k_hw
ath9k                  94427  1 
ath9k_common           11789  1 ath9k
ath9k_hw              337900  2 ath9k,ath9k_common
cfg80211              211418  5 ath9k,ath9k_common,ath,rt2x00lib,mac80211
compat                  5208  5 ath9k,ath9k_common,rt2800usb,mac80211,cfg80211
mac80211              413704  4 ath9k,rt2800lib,rt2x00usb,rt2x00lib
root@Openwrt:~# rmmod ath9k
unloading the module failed

Thanks

Blacklist it at boot?

(Edit: Might have to change the build so it's not built into the kernel to do that though.)

2 Likes

Did you try bringing down the corresponding interfaces first?