compat-drivers: fix driver-select for atheros drivers
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 22 Jan 2013 00:19:40 +0000 (16:19 -0800)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 22 Jan 2013 00:33:51 +0000 (16:33 -0800)
The addition of the new wil6210 driver added a new ATH_CARDS
option to be used to describe Atheros cards and now uses ATH_COMMON
for the common module ath. This requires fixing the driver-select
script so that the drivers are enabled properly.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
scripts/driver-select

index de3e39b4fab121a3b2dc71cf152d8c89243dea33..2c9f14532673da2e6a66abd26cc5fc480b365830 100755 (executable)
@@ -268,6 +268,13 @@ function select_ath_driver
        disable_var_01
 }
 
+function select_ath_no_common
+{
+       backup_file $ATH_MAKEFILE
+       perl -i -ne 'print if /'$1'/' $ATH_MAKEFILE
+       disable_var_01
+}
+
 function select_ath9k_driver
 {
        select_ath_driver CONFIG_ATH9K_HW
@@ -347,7 +354,7 @@ case $1 in
                ;;
 # Group drivers
        atheros)
-               select_drivers          CONFIG_ATH_COMMON \
+               select_drivers          CONFIG_ATH_CARDS \
                                        CONFIG_COMPAT_ZD1211RW
                disable_staging
                disable_bt_usb_ethernet_var
@@ -355,7 +362,7 @@ case $1 in
                ;;
        ath)
                disable_bt_usb_ethernet_var
-               select_drivers          CONFIG_ATH_COMMON
+               select_drivers          CONFIG_ATH_CARDS
                disable_var_01
                ;;
        intel)
@@ -415,45 +422,45 @@ case $1 in
        ath5k)
                disable_staging
                disable_bt_usb_ethernet_var
-               select_drivers          CONFIG_ATH_COMMON
+               select_drivers          CONFIG_ATH_CARDS
                select_ath_driver       CONFIG_ATH5K
                #patch -p1 < enable-older-kernels/enable-2.6.23.patch
                ;;
        ath9k)
                disable_staging
                disable_bt_usb_ethernet_var
-               select_drivers          CONFIG_ATH_COMMON
+               select_drivers          CONFIG_ATH_CARDS
                select_ath9k_driver
                ;;
        ath9k_ap)
                disable_staging
                disable_bt_usb_ethernet_var
-               select_drivers          CONFIG_ATH_COMMON
+               select_drivers          CONFIG_ATH_CARDS
                select_ath9k_driver_ap
                ;;
        carl9170)
                disable_staging
                disable_bt_usb_ethernet_var
-               select_drivers          CONFIG_ATH_COMMON
+               select_drivers          CONFIG_ATH_CARDS
                select_ath_driver       CONFIG_CARL9170
                ;;
        ath9k_htc)
                disable_staging
                disable_bt_usb_ethernet_var
-               select_drivers          CONFIG_ATH_COMMON
+               select_drivers          CONFIG_ATH_CARDS
                select_ath9k_driver
                ;;
        ath6kl)
                disable_staging
                disable_bt_usb_ethernet_var
-               select_drivers          CONFIG_ATH_COMMON
+               select_drivers          CONFIG_ATH_CARDS
                select_ath_driver       CONFIG_ATH6KL
                ;;
        wil6210)
                disable_staging
                disable_bt_usb_ethernet_var
-               select_drivers          CONFIG_ATH_COMMON
-               select_ath_driver       CONFIG_WIL6210
+               select_drivers          CONFIG_ATH_CARDS
+               select_ath_no_common    CONFIG_WIL6210
                ;;
        brcmsmac)
                disable_staging