Why is the ath10k_core module still loaded despite disabling the interface?

I don’t want to use the 802.11ac interface (Atheros QCA9880) since it contains proprietary blobs. Instead I want to use the 802.11gbn one (Atheros AR9287)

I disabled the interface, and this is reflected both in reForis and LuCi:

However, the module still seems loaded, despite reboot:

root@omnia:~# lsmod
act_mirred             16384  0
act_skbedit            16384  0
at24                   20480  0
ath                    24576  4 ath9k,ath9k_common,ath9k_hw,ath10k_core
ath10k_core           319488  1 ath10k_pci
ath10k_pci             36864  0
ath9k                 110592  1
ath9k_common           24576  1 ath9k
ath9k_hw              405504  2 ath9k,ath9k_common
br_netfilter           24576  0
cfg80211              245760  5 ath9k,ath9k_common,ath10k_core,ath,mac80211
cls_basic              16384  0
cls_flow               20480  0
cls_fw                 16384  0
cls_matchall           16384  0
cls_route              20480  0
cls_tcindex            20480  0
cls_u32                20480  0
compat                 16384  6 ath9k,ath9k_common,ath10k_pci,ath10k_core,mac80211,cfg80211
configs                53248  0
crc_ccitt              16384  1 ppp_async
ebt_802_3              16384  0
ebt_among              16384  0
ebt_limit              16384  0
ebt_mark               16384  0
ebt_mark_m             16384  0
ebt_pkttype            16384  0
ebt_redirect           16384  0
ebt_stp                16384  0
ebt_vlan               16384  0
ebtable_broute         16384  0
ebtable_filter         16384  0
ebtable_nat            16384  0
ebtables               24576  3 ebtable_nat,ebtable_filter,ebtable_broute
em_u32                 16384  0
exfat                 110592  0
fat                    61440  1 vfat
i2c_mux                16384  1 i2c_mux_pca954x
i2c_mux_pca954x        16384  0
ifb                    16384  0
ip_set                 32768 16 xt_set,ip_set_list_set,ip_set_hash_netportnet,ip_set_hash_netport,ip_set_hash_netnet,ip_set_hash_netiface,ip_set_hash_net,ip_set_hash_mac,ip_set_hash_ipportnet,ip_set_hash_ipportip,ip_set_hash_ipport,ip_set_hash_ipmark,ip_set_hash_ip,ip_set_bitmap_port,ip_set_bitmap_ipmac,ip_set_bitmap_ip
ip_set_bitmap_ip       20480  0
ip_set_bitmap_ipmac    20480  0
ip_set_bitmap_port     20480  0
ip_set_hash_ip         32768  0
ip_set_hash_ipmark     32768  0
ip_set_hash_ipport     32768  0
ip_set_hash_ipportip   32768  0
ip_set_hash_ipportnet   36864  0
ip_set_hash_mac        20480  0
ip_set_hash_net        32768  0
ip_set_hash_netiface   36864  0
ip_set_hash_netnet     36864  0
ip_set_hash_netport    36864  0
ip_set_hash_netportnet   36864  0
ip_set_list_set        20480  0
ip_tables              24576  5 iptable_nat,iptable_raw,iptable_mangle,iptable_filter
ip_tunnel              24576  1 sit
ip6_tables             24576 24 ip6table_mangle,ip6table_filter
ip6_tunnel             32768  0
ip6t_REJECT            16384  2
ip6table_filter        16384  1
ip6table_mangle        16384  1
ipt_ECN                16384  0
ipt_MASQUERADE         16384  1
ipt_REJECT             16384  2
iptable_filter         16384  1
iptable_mangle         16384  1
iptable_nat            16384  1
iptable_raw            16384  1
ledtrig_gpio           16384  0
ledtrig_heartbeat      16384  0
ledtrig_oneshot        16384  0
ledtrig_transient      16384  0
libcrc32c              16384  1 xfs
mac80211              454656  2 ath9k,ath10k_core
nf_conntrack           77824 21 sch_cake,nf_conntrack_ipv6,ipt_MASQUERADE,xt_state,xt_nat,xt_helper,xt_conntrack,xt_connmark,xt_connlimit,xt_connbytes,xt_REDIRECT,xt_CT,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_nat_ipv4,nf_nat_ftp,nf_nat,nf_flow_table,nf_conntrack_rtcache,nf_conntrack_netlink,nf_conntrack_ftp
nf_conntrack_ftp       16384  3 nf_nat_ftp
nf_conntrack_ipv4      16384 19
nf_conntrack_ipv6      16384  5
nf_conntrack_netlink   32768  0
nf_conntrack_rtcache   16384  0
nf_defrag_ipv4         16384  1 nf_conntrack_ipv4
nf_defrag_ipv6         20480  1 nf_conntrack_ipv6
nf_flow_table          24576  2 xt_FLOWOFFLOAD,nf_flow_table_hw
nf_flow_table_hw       16384  1
nf_log_common          16384  2 nf_log_ipv4,nf_log_ipv6
nf_log_ipv4            16384  0
nf_log_ipv6            16384  0
nf_nat                 24576  5 xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4,nf_nat_ipv4,nf_nat_ftp
nf_nat_ftp             16384  0
nf_nat_ipv4            16384  1 iptable_nat
nf_nat_masquerade_ipv4   16384  1 ipt_MASQUERADE
nf_nat_redirect        16384  1 xt_REDIRECT
nf_reject_ipv4         16384  1 ipt_REJECT
nf_reject_ipv6         16384  1 ip6t_REJECT
nfnetlink              16384  2 nf_conntrack_netlink,ip_set
nls_cp437              16384  0
nls_iso8859_1          16384  0
nls_utf8               16384  0
nvmem_core             20480  1 at24
ppp_async              20480  0
ppp_generic            32768  3 pppoe,ppp_async,pppox
pppoe                  20480  0
pppox                  16384  1 pppoe
qcserial               16384  0
sch_cake               40960  0
sch_hfsc               24576  0
sch_htb                24576  0
sch_ingress            16384  0
sch_tbf                20480  0
sit                    28672  0
slhc                   16384  1 ppp_generic
tunnel4                16384  1 sit
tunnel6                16384  1 ip6_tunnel
uas                    24576  0
ums_alauda             20480  0
ums_cypress            16384  0
ums_datafab            16384  0
ums_freecom            16384  0
ums_isd200             16384  0
ums_jumpshot           16384  0
ums_karma              16384  0
ums_sddr09             20480  0
ums_sddr55             20480  0
ums_usbat              20480  0
usb_wwan               16384  1 qcserial
usbserial              28672  2 qcserial,usb_wwan
vfat                   20480  0
x_tables               24576 51 ipt_REJECT,ipt_MASQUERADE,xt_time,xt_tcpudp,xt_tcpmss,xt_statistic,xt_state,xt_recent,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_length,xt_hl,xt_helper,xt_ecn,xt_dscp,xt_conntrack,xt_connmark,xt_connlimit,xt_connbytes,xt_comment,xt_TCPMSS,xt_REDIRECT,xt_LOG,xt_HL,xt_FLOWOFFLOAD,xt_DSCP,xt_CT,xt_CLASSIFY,iptable_raw,iptable_mangle,iptable_filter,ipt_ECN,ip_tables,ebtables,ebt_vlan,ebt_stp,ebt_redirect,ebt_pkttype,ebt_mark_m,ebt_mark,ebt_limit,ebt_among,ebt_802_3,xt_set,ip6table_mangle,ip6table_filter,ip6_tables,ip6t_REJECT
xfs                   618496  0
xt_CLASSIFY            16384  0
xt_CT                  16384  2
xt_DSCP                16384  0
xt_FLOWOFFLOAD         16384  0
xt_HL                  16384  0
xt_LOG                 16384  0
xt_REDIRECT            16384  0
xt_TCPMSS              16384  4
xt_comment             16384173
xt_connbytes           16384  0
xt_connlimit           16384  0
xt_connmark            16384  0
xt_conntrack           16384 16
xt_dscp                16384  0
xt_ecn                 16384  0
xt_helper              16384  0
xt_hl                  16384  0
xt_length              16384  0
xt_limit               16384 20
xt_mac                 16384  0
xt_mark                16384  0
xt_multiport           16384  0
xt_nat                 16384  4
xt_recent              20480  0
xt_set                 20480  0
xt_state               16384  0
xt_statistic           16384  0
xt_tcpmss              16384  0
xt_tcpudp              16384 24
xt_time                16384  0

Even if I try to remove it manually, it fails:

root@omnia:~# rmmod ath10k_core
unloading the module failed

As you see above, there’s a dependency. This succeeds for me:

rmmod ath10k_pci
rmmod ath10k_core

However, I don’t think I’m really able to help noticeably more than that.

Thanks, I wasn’t aware that modules could have dependencies.

This worked for me as well.

To make it permanent, I’ve added rmmod ath10k_pci ; rmmod ath10k_core to LuCi → System → Startup → Local Startup.
If there’s a better way, then I’m all ears.

Most likely but I’m not sure. I suspect it’s /etc/modules.d/ath10k that’s pulling it in and that one can instead put lines like blacklist ath10k_core into such files.

EDIT: well, blacklisting perhaps isn’t needed: How to blacklist modules - #2 by slh - Installing and Using OpenWrt - OpenWrt Forum

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.