DRIVERS_NET_BROADCOM="drivers/net/ethernet/broadcom/Makefile"
DRIVERS_NET_USB_MAKEFILE="drivers/net/usb/Makefile"
SSB_MAKEFILE="drivers/ssb/Makefile"
+BCMA_MAKEFILE="drivers/bcma/Makefile"
# used to backup files from foo to foo.${BACKUP_EXT}
# If you change this also modify restore_compat() and
CYAN="\033[36m"
UNDERLINE="\033[02m"
-SUPPORTED_80211_DRIVERS="ath5k ath9k ath9k_htc carl9170 b43 zd1211rw rt2x00 wl1251 wl12xx"
-
-if [ -d drivers/staging/ath6kl ]; then
- SUPPORTED_80211_DRIVERS="$SUPPORTED_80211_DRIVERS ath6kl"
-fi
+SUPPORTED_80211_DRIVERS="ath5k ath9k ath9k_htc carl9170 ath6kl b43 zd1211rw rt2x00 wl1251 wl12xx"
if [ -d drivers/staging/brcm80211 ]; then
SUPPORTED_80211_DRIVERS="$SUPPORTED_80211_DRIVERS brcm80211"
# These should match the switch below.
echo -e "\nSupported group drivers:"
- echo -e "\t${CYAN}atheros${NORMAL} < ${PURPLE} ath5k ath9k carl9170 zd1211rw ${NORMAL}>"
- echo -e "\t${CYAN}ath${NORMAL} < ${PURPLE} ath5k ath9k carl9170 ${NORMAL}>"
+ echo -e "\t${CYAN}atheros${NORMAL} < ${PURPLE} ath5k ath9k carl9170 zd1211rw ath6kl ${NORMAL}>"
+ echo -e "\t${CYAN}ath${NORMAL} < ${PURPLE} ath5k ath9k carl9170 ath6kl ${NORMAL}>"
echo -e "\t${CYAN}iwlagn${NORMAL} < ${PURPLE} iwlagn ${NORMAL}>"
echo -e "\t${CYAN}rtl818x${NORMAL} < ${PURPLE} rtl8180 rtl8187 ${NORMAL}>"
echo -e "\t${CYAN}rtlwifi${NORMAL} < ${PURPLE} rtl8192ce ${NORMAL}>"
function disable_ssb
{
- disable_b44
disable_makefile ${SSB_MAKEFILE}
- perl -i -ne 'print if ! /drivers\/ssb\/ \\/ ' Makefile
+ perl -i -ne 'print if ! /drivers\/ssb\//' Makefile
+}
+
+function disable_bcma
+{
+ disable_makefile ${BCMA_MAKEFILE}
+ perl -i -ne 'print if ! /drivers\/bcma\//' Makefile
}
function disable_rfkill
function disable_eeprom
{
disable_makefile ${EEPROM_MAKEFILE}
- perl -i -ne 'print if ! /drivers\/misc\/eeprom\/ \\/' Makefile
+ perl -i -ne 'print if ! /drivers\/misc\/eeprom\//' Makefile
}
function disable_usbnet
{
disable_makefile ${DRIVERS_NET_USB_MAKEFILE}
- perl -i -ne 'print if ! /drivers\/net\/usb\/ \\/' Makefile
+ perl -i -ne 'print if ! /drivers\/net\/usb\//' Makefile
}
function disable_usbnet {
}
function disable_var_03 {
- perl -i -ne 'print if ! /CONFIG_COMPAT_BLUETOOTH/' Makefile
+ perl -i -ne 'print if ! /CONFIG_COMPAT_VAR_MODULES/' Makefile
}
function disable_bt {
- perl -i -ne 'print if ! /CONFIG_COMPAT_VAR_MODULES/' Makefile
perl -i -ne 'print if ! /CONFIG_COMPAT_BLUETOOTH/' Makefile
}
perl -i -ne 'print if ! /CONFIG_COMPAT_WIRELESS/' Makefile
}
-function disable_bt_usb_ethernet_var {
+function disable_bt_usb_ethernet {
backup_file Makefile
disable_usbnet
disable_ethernet
- disable_var_03
disable_bt
disable_update-initramfs
-}
+}
+
+function disable_bt_usb_ethernet_var {
+ backup_file Makefile
+ disable_bt_usb_ethernet
+ disable_var_03
+}
function enable_only_ethernet {
backup_file Makefile
function disable_var {
disable_ssb
+ disable_bcma
disable_usbnet
disable_eeprom
disable_update-initramfs
#var_01 with eeprom not disabled
disable_lib80211
disable_ssb
+ disable_bcma
disable_usbnet
disable_update-initramfs
}
perl -i -ne 'print if ! /CONFIG_COMPAT_STAGING/ ' Makefile
}
-function disable_ath6kl {
- backup_file Makefile
- perl -i -ne 'print if ! /ath6kl/ ' Makefile
-}
-
function disable_brcm80211 {
backup_file Makefile
perl -i -ne 'print if ! /brcm80211/ ' Makefile
select_drivers CONFIG_ATH_COMMON \
CONFIG_COMPAT_ZD1211RW
disable_staging
+ disable_bt_usb_ethernet_var
disable_var_01
;;
ath)
rtl818x)
select_drivers CONFIG_RTL8180 CONFIG_RTL8187
disable_staging
- disable_var_02
+ disable_bt_usb_ethernet
+ disable_ssb
+ disable_bcma
+ disable_lib80211
;;
rtlwifi)
select_drivers CONFIG_RTL8192CE CONFIG_RTLWIFI
disable_staging
disable_bt_usb_ethernet_var
+ disable_lib80211
;;
wl12xx)
select_drivers CONFIG_WL1251 \
select_ath9k_driver
;;
ath6kl)
+ disable_staging
disable_bt_usb_ethernet_var
- disable_brcm80211
- select_driver CONFIG_NOTHING
- sed -e 's|net/mac80211/||' Makefile > Makefile.ath6kl
- mv Makefile.ath6kl Makefile
+ select_driver CONFIG_ATH_COMMON
+ select_ath_driver CONFIG_ATH6KL
;;
brcm80211)
disable_bt_usb_ethernet_var
- disable_ath6kl
select_driver CONFIG_NOTHING
;;
zd1211rw)
;;
b43)
disable_staging
- disable_usbnet
- disable_ethernet
- disable_var_03
+ disable_bt_usb_ethernet
+ disable_eeprom
+ disable_lib80211
select_driver CONFIG_B43
;;
rt2x00)
select_driver CONFIG_RT2X00
disable_staging
+ disable_bt_usb_ethernet
disable_var_02
;;
wl1251)