Why I can't uninstall bcmdhd_pcie module?

Hi guys,

How to remove bcmdhd_pcie module?

sercomm@localhost:~$ cat /etc/nv_tegra_release
# R32 (release), REVISION: 3.1, GCID: 18186506, BOARD: t210ref, EABI: aarch64, DATE: Tue Dec 10 06:58:34 UTC 2019
sercomm@localhost:~$ uname -a
Linux localhost 4.9.140-tegra #1 SMP PREEMPT Mon Dec 9 22:47:42 PST 2019 aarch64 aarch64 aarch64 GNU/Linux

sercomm@localhost:/lib/modules/4.9.140-tegra/kernel/drivers/net/wireless/bcmdhd_pcie$ lsmod | grep bcmdhd_pcie
bcmdhd_pcie           892308  -1
cfg80211              589351  1 bcmdhd_pcie

sercomm@localhost:/lib/modules/4.9.140-tegra/kernel/drivers/net/wireless/bcmdhd_pcie$ sudo modprobe -r bcmdhd_pcie cfg80211
modprobe: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'bcmdhd_pcie': Device or resource busy
modprobe: FATAL: Module cfg80211 is in use.

sercomm@localhost:/lib/modules/4.9.140-tegra/kernel/drivers/net/wireless/bcmdhd_pcie$ sudo rmmod bcmdhd_pcie
rmmod: ERROR: Module bcmdhd_pcie is in use


Please disable those interfaces that are using these driver.

For example, on TX2, we need to disable wlan0 before removing bcmdhd.

Hi WayneWWW,


Could tell how to figure out what interface is usig the bcmdhd_pcie module?

I guess it should be also wlan0. Please check if you have any extra wifi interface there.

Hi WayneWWW,

I just test the bcmdhd_pcie module on original official devkit without any extral components. Are there some commands or scripts to show the interface a module is using?

I meant ifconfig.