]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
wireless: allow Atheros card to not depend on ath.ko
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Wed, 28 Nov 2012 16:57:19 +0000 (18:57 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Nov 2012 18:38:16 +0000 (13:38 -0500)
There are 2 different things:
- sub-menu for "Atheros Wireless cards" family
- module ath.ko with common Atheros code

Until now, they both used to depend on the same Kconfig variable ATH_COMMON.
Thus, being "Atheros card" and "depending on ath.ko" was the same.

To allow module to belong to the
"Atheros Wireless cards" family but not use ath.ko,
2 conditions above need to be separated.

So, this patch introduce new Kconfig variable ATH_CARDS for belonging
to the "Atheros Wireless Cards" family; while ATH_COMMON becomes hidden
variable to express dependency on common Atheros code in ath.ko. Modules
that depend on this common code now express it by setting ATH_COMMON.

Right now, ath6kl do not depend on common code and thus do not set ATH_COMMON.

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/Kconfig
drivers/net/wireless/ath/ar5523/Kconfig
drivers/net/wireless/ath/ath5k/Kconfig
drivers/net/wireless/ath/ath9k/Kconfig
drivers/net/wireless/ath/carl9170/Kconfig

index c25dcf192fec990f32b51b5c1ccd584584403d8e..1a67a4f829fe9f3fca15a6ad3533e335bec70a25 100644 (file)
@@ -1,4 +1,7 @@
-menuconfig ATH_COMMON
+config ATH_COMMON
+       tristate
+
+menuconfig ATH_CARDS
        tristate "Atheros Wireless Cards"
        depends on CFG80211 && (!UML || BROKEN)
        ---help---
@@ -14,7 +17,7 @@ menuconfig ATH_COMMON
 
          http://wireless.kernel.org/en/users/Drivers/Atheros
 
-if ATH_COMMON
+if ATH_CARDS
 
 config ATH_DEBUG
        bool "Atheros wireless debugging"
index 11d99ee8de51cb6c8f0470d933eefd07d5d4c4f1..0d320cc7769b7141a8502f60775f2e473a656838 100644 (file)
@@ -1,6 +1,7 @@
 config AR5523
        tristate "Atheros AR5523 wireless driver support"
        depends on MAC80211 && USB
+       select ATH_COMMON
        select FW_LOADER
        ---help---
          This module add support for AR5523 based USB dongles such as D-Link
index 338c5c42357df7fa9e9f0e2db4dedddeaaae9d61..c9f81a388f1572cb6a9f233809731f61c4ffe209 100644 (file)
@@ -1,6 +1,7 @@
 config ATH5K
        tristate "Atheros 5xxx wireless cards support"
        depends on (PCI || ATHEROS_AR231X) && MAC80211
+       select ATH_COMMON
        select MAC80211_LEDS
        select LEDS_CLASS
        select NEW_LEDS
index c7aa6646123e9ae0db4de0a83cb80b97aa322ef6..5fc15bf8be09449cffe2a7b19a47843ad615af7b 100644 (file)
@@ -17,6 +17,7 @@ config ATH9K_BTCOEX_SUPPORT
 config ATH9K
        tristate "Atheros 802.11n wireless cards support"
        depends on MAC80211
+       select ATH_COMMON
        select ATH9K_HW
        select MAC80211_LEDS
        select LEDS_CLASS
index 267d5dcf82dc61b5e992a524338965a29f979c56..13a204598766d1d3ea49f665c8ad42be78decc2d 100644 (file)
@@ -1,6 +1,7 @@
 config CARL9170
        tristate "Linux Community AR9170 802.11n USB support"
        depends on USB && MAC80211 && EXPERIMENTAL
+       select ATH_COMMON
        select FW_LOADER
        select CRC32
        help