I think the correct method is:
Code:
sudo modprobe -r iwlwifi
And then it should take out all the dependencies with it.
You might also be certain that the default /etc/modprobe.d/iwlwifi.conf file is in place.
Code:
# /etc/modprobe.d/iwlwifi.conf
# iwlwifi will dyamically load either iwldvm or iwlmvm depending on the
# microcode file installed on the system. When removing iwlwifi, first
# remove the iwl?vm module and then iwlwifi.
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211
FYI, the module dependencies are found with modinfo:
Code:
$ modinfo iwlwifi
filename: /lib/modules/4.13.0-25-generic/kernel/drivers/net/wireless/intel/iwlwifi/iwlwifi.ko
license: GPL
author: Copyright(c) 2003- 2015 Intel Corporation <linuxwifi@intel.com>
description: Intel(R) Wireless WiFi driver for Linux
<snip>
depends: cfg80211
As well as:
Code:
$ modinfo iwlmvm
filename: /lib/modules/4.13.0-25-generic/kernel/drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.ko
license: GPL
author: Copyright(c) 2003- 2015 Intel Corporation <linuxwifi@intel.com>
description: The new Intel(R) wireless AGN driver for Linux
srcversion: EBD7611E6805E2BDE8304CC
depends: iwlwifi,mac80211,cfg80211
<snip>
You can get the module to load even though it's blacklisted after a short wait by adding to /etc/rc.local so that it reads:
Code:
sleep 3
modprobe iwlwifi
exit 0
You might have to play with the sleep 3 (seconds) a bit. It might need 4 or it might work perfectly well with 2 or 1.
Bookmarks