3
# The old stack drivers and the mac80211 rc80211_simple modules
4
# which is no longer on recent kernels (its internal)
5
OLD_MODULES="iwlwifi_mac80211 rc80211_simple zd1211rw-mac80211"
6
OLD_MODULES="$OLD_MODULES ieee80211_crypt_tkip ieee80211_crypt_ccmp"
7
OLD_MODULES="$OLD_MODULES ieee80211softmac ieee80211_crypt ieee80211"
8
OLD_MODULES="$OLD_MODULES bcm43xx rndis_wext iwl4965"
10
MODULES="$MODULES ipw2100 ipw2200 libipw"
11
MODULES="$MODULES wl1251 wl12xx"
12
MODULES="$MODULES libertas_cs usb8xxx libertas libertas_sdio libertas_spi"
13
MODULES="$MODULES libertas_tf libertas_tf_usb"
14
MODULES="$MODULES adm8211 zd1211rw"
15
MODULES="$MODULES orinoco_cs orinoco_nortel orinoco_pci orinoco_plx"
16
MODULES="$MODULES orinoco_tld orinoco_usb spectrum_cs orinoco"
17
MODULES="$MODULES b43 b44 b43legacy brcm80211 ssb"
18
MODULES="$MODULES iwl3945 iwlwifi iwlagn iwlcore"
19
MODULES="$MODULES ath9k ath9k_htc ath9k_common ath9k_hw "
20
MODULES="$MODULES ath5k ath ath6kl ar9170usb carl9170"
21
MODULES="$MODULES p54pci p54usb p54spi p54common"
22
MODULES="$MODULES rt2400pci rt2500pci rt61pci"
23
MODULES="$MODULES rt2500usb rt73usb"
24
MODULES="$MODULES rt2800usb rt2800lib"
25
MODULES="$MODULES rt2x00usb rt2x00lib"
26
MODULES="$MODULES rtl8180 rtl8187 rtl8192ce rtlwifi"
27
MODULES="$MODULES mwl8k mac80211_hwsim"
28
MODULES="$MODULES at76c50x_usb at76_usb"
29
MODULES="$MODULES rndis_wlan rndis_host cdc_ether usbnet"
30
# eeprom_93cx6 is used by rt2x00 (rt61pci, rt2500pci, rt2400pci)
31
# and Realtek drivers ( rtl8187, rtl8180)
32
MODULES="$MODULES eeprom_93cx6"
33
MODULES="$MODULES lib80211_crypt_ccmp lib80211_crypt_tkip lib80211_crypt_wep"
34
MODULES="$MODULES mac80211 cfg80211 lib80211"
35
MADWIFI_MODULES="ath_pci ath_rate_sample wlan_scan_sta wlan ath_hal"
36
IPW3945D="/sbin/ipw3945d-`uname -r`"
38
if [ -f $IPW3945D ]; then
41
echo -n "Detected ipw3945 daemon loaded we're going to "
42
echo "shut the daemon down now and remove the module."
43
modprobe -r --ignore-remove ipw3945
47
grep ath_pci /proc/modules 2>&1 > /dev/null
49
echo "MadWifi driver is loaded, going to try to unload it..."
50
./scripts/madwifi-unload
54
grep ^$i /proc/modules 2>&1 > /dev/null
57
modprobe -r --ignore-remove $i