diff options
author | Senthil Balasubramanian <senthilkumar@atheros.com> | 2008-11-13 07:30:02 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-11-25 16:41:30 -0500 |
commit | e97275cb062cf927cdb086f0107657dd92160801 (patch) | |
tree | 611bb3cff70ebdfb5507f63c9b64cf10fffcdf97 /drivers/net/wireless/ath9k | |
parent | f9bbf431beb7dd98b94fa965dab851432be4b762 (diff) |
ath9k: Build RFKILL feature even when RFKILL subsystem is a MODULE
Currently, ath9k builds RFKILL feature only when the RFKILL subsystem
is built part of the kernel. Build RFKILL feature regardless of whether
RFKILL subsystem is built as a MODULE or part of the kernel.
Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k')
-rw-r--r-- | drivers/net/wireless/ath9k/ath9k.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/core.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/hw.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 12 |
4 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/wireless/ath9k/ath9k.h b/drivers/net/wireless/ath9k/ath9k.h index 3a180ce1770b..6be2b947307c 100644 --- a/drivers/net/wireless/ath9k/ath9k.h +++ b/drivers/net/wireless/ath9k/ath9k.h | |||
@@ -904,7 +904,7 @@ u32 ath9k_hw_gpio_get(struct ath_hal *ah, u32 gpio); | |||
904 | void ath9k_hw_cfg_output(struct ath_hal *ah, u32 gpio, | 904 | void ath9k_hw_cfg_output(struct ath_hal *ah, u32 gpio, |
905 | u32 ah_signal_type); | 905 | u32 ah_signal_type); |
906 | void ath9k_hw_set_gpio(struct ath_hal *ah, u32 gpio, u32 val); | 906 | void ath9k_hw_set_gpio(struct ath_hal *ah, u32 gpio, u32 val); |
907 | #ifdef CONFIG_RFKILL | 907 | #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) |
908 | void ath9k_enable_rfkill(struct ath_hal *ah); | 908 | void ath9k_enable_rfkill(struct ath_hal *ah); |
909 | #endif | 909 | #endif |
910 | int ath9k_hw_select_antconfig(struct ath_hal *ah, u32 cfg); | 910 | int ath9k_hw_select_antconfig(struct ath_hal *ah, u32 cfg); |
diff --git a/drivers/net/wireless/ath9k/core.c b/drivers/net/wireless/ath9k/core.c index 5f5184acb274..3e94dab6c9d9 100644 --- a/drivers/net/wireless/ath9k/core.c +++ b/drivers/net/wireless/ath9k/core.c | |||
@@ -705,7 +705,7 @@ void ath_stop(struct ath_softc *sc) | |||
705 | } else | 705 | } else |
706 | sc->sc_rxlink = NULL; | 706 | sc->sc_rxlink = NULL; |
707 | 707 | ||
708 | #ifdef CONFIG_RFKILL | 708 | #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) |
709 | if (sc->sc_ah->ah_caps.hw_caps & ATH9K_HW_CAP_RFSILENT) | 709 | if (sc->sc_ah->ah_caps.hw_caps & ATH9K_HW_CAP_RFSILENT) |
710 | cancel_delayed_work_sync(&sc->rf_kill.rfkill_poll); | 710 | cancel_delayed_work_sync(&sc->rf_kill.rfkill_poll); |
711 | #endif | 711 | #endif |
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c index efeef2ca5350..82c2a4259ce4 100644 --- a/drivers/net/wireless/ath9k/hw.c +++ b/drivers/net/wireless/ath9k/hw.c | |||
@@ -2340,7 +2340,7 @@ bool ath9k_hw_reset(struct ath_hal *ah, struct ath9k_channel *chan, | |||
2340 | ath9k_hw_init_interrupt_masks(ah, ah->ah_opmode); | 2340 | ath9k_hw_init_interrupt_masks(ah, ah->ah_opmode); |
2341 | ath9k_hw_init_qos(ah); | 2341 | ath9k_hw_init_qos(ah); |
2342 | 2342 | ||
2343 | #ifdef CONFIG_RFKILL | 2343 | #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) |
2344 | if (ah->ah_caps.hw_caps & ATH9K_HW_CAP_RFSILENT) | 2344 | if (ah->ah_caps.hw_caps & ATH9K_HW_CAP_RFSILENT) |
2345 | ath9k_enable_rfkill(ah); | 2345 | ath9k_enable_rfkill(ah); |
2346 | #endif | 2346 | #endif |
@@ -3515,7 +3515,7 @@ bool ath9k_hw_fill_cap_info(struct ath_hal *ah) | |||
3515 | 3515 | ||
3516 | pCap->hw_caps |= ATH9K_HW_CAP_ENHANCEDPM; | 3516 | pCap->hw_caps |= ATH9K_HW_CAP_ENHANCEDPM; |
3517 | 3517 | ||
3518 | #ifdef CONFIG_RFKILL | 3518 | #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) |
3519 | ah->ah_rfsilent = ath9k_hw_get_eeprom(ah, EEP_RF_SILENT); | 3519 | ah->ah_rfsilent = ath9k_hw_get_eeprom(ah, EEP_RF_SILENT); |
3520 | if (ah->ah_rfsilent & EEP_RFSILENT_ENABLED) { | 3520 | if (ah->ah_rfsilent & EEP_RFSILENT_ENABLED) { |
3521 | ah->ah_rfkill_gpio = | 3521 | ah->ah_rfkill_gpio = |
@@ -3772,7 +3772,7 @@ void ath9k_hw_set_gpio(struct ath_hal *ah, u32 gpio, u32 val) | |||
3772 | AR_GPIO_BIT(gpio)); | 3772 | AR_GPIO_BIT(gpio)); |
3773 | } | 3773 | } |
3774 | 3774 | ||
3775 | #ifdef CONFIG_RFKILL | 3775 | #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) |
3776 | void ath9k_enable_rfkill(struct ath_hal *ah) | 3776 | void ath9k_enable_rfkill(struct ath_hal *ah) |
3777 | { | 3777 | { |
3778 | REG_SET_BIT(ah, AR_GPIO_INPUT_EN_VAL, | 3778 | REG_SET_BIT(ah, AR_GPIO_INPUT_EN_VAL, |
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index fbb2dd2373c8..ce94edee71d1 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -594,7 +594,7 @@ fail: | |||
594 | ath_deinit_leds(sc); | 594 | ath_deinit_leds(sc); |
595 | } | 595 | } |
596 | 596 | ||
597 | #ifdef CONFIG_RFKILL | 597 | #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) |
598 | 598 | ||
599 | /*******************/ | 599 | /*******************/ |
600 | /* Rfkill */ | 600 | /* Rfkill */ |
@@ -838,7 +838,7 @@ static void ath_detach(struct ath_softc *sc) | |||
838 | 838 | ||
839 | ath_deinit_leds(sc); | 839 | ath_deinit_leds(sc); |
840 | 840 | ||
841 | #ifdef CONFIG_RFKILL | 841 | #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) |
842 | ath_deinit_rfkill(sc); | 842 | ath_deinit_rfkill(sc); |
843 | #endif | 843 | #endif |
844 | ath_rate_control_unregister(); | 844 | ath_rate_control_unregister(); |
@@ -921,7 +921,7 @@ static int ath_attach(u16 devid, struct ath_softc *sc) | |||
921 | /* Initialize LED control */ | 921 | /* Initialize LED control */ |
922 | ath_init_leds(sc); | 922 | ath_init_leds(sc); |
923 | 923 | ||
924 | #ifdef CONFIG_RFKILL | 924 | #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) |
925 | /* Initialze h/w Rfkill */ | 925 | /* Initialze h/w Rfkill */ |
926 | if (sc->sc_ah->ah_caps.hw_caps & ATH9K_HW_CAP_RFSILENT) | 926 | if (sc->sc_ah->ah_caps.hw_caps & ATH9K_HW_CAP_RFSILENT) |
927 | INIT_DELAYED_WORK(&sc->rf_kill.rfkill_poll, ath_rfkill_poll); | 927 | INIT_DELAYED_WORK(&sc->rf_kill.rfkill_poll, ath_rfkill_poll); |
@@ -978,7 +978,7 @@ static int ath9k_start(struct ieee80211_hw *hw) | |||
978 | goto exit; | 978 | goto exit; |
979 | } | 979 | } |
980 | 980 | ||
981 | #ifdef CONFIG_RFKILL | 981 | #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) |
982 | error = ath_start_rfkill_poll(sc); | 982 | error = ath_start_rfkill_poll(sc); |
983 | #endif | 983 | #endif |
984 | 984 | ||
@@ -1722,7 +1722,7 @@ static int ath_pci_suspend(struct pci_dev *pdev, pm_message_t state) | |||
1722 | 1722 | ||
1723 | ath9k_hw_set_gpio(sc->sc_ah, ATH_LED_PIN, 1); | 1723 | ath9k_hw_set_gpio(sc->sc_ah, ATH_LED_PIN, 1); |
1724 | 1724 | ||
1725 | #ifdef CONFIG_RFKILL | 1725 | #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) |
1726 | if (sc->sc_ah->ah_caps.hw_caps & ATH9K_HW_CAP_RFSILENT) | 1726 | if (sc->sc_ah->ah_caps.hw_caps & ATH9K_HW_CAP_RFSILENT) |
1727 | cancel_delayed_work_sync(&sc->rf_kill.rfkill_poll); | 1727 | cancel_delayed_work_sync(&sc->rf_kill.rfkill_poll); |
1728 | #endif | 1728 | #endif |
@@ -1759,7 +1759,7 @@ static int ath_pci_resume(struct pci_dev *pdev) | |||
1759 | AR_GPIO_OUTPUT_MUX_AS_OUTPUT); | 1759 | AR_GPIO_OUTPUT_MUX_AS_OUTPUT); |
1760 | ath9k_hw_set_gpio(sc->sc_ah, ATH_LED_PIN, 1); | 1760 | ath9k_hw_set_gpio(sc->sc_ah, ATH_LED_PIN, 1); |
1761 | 1761 | ||
1762 | #ifdef CONFIG_RFKILL | 1762 | #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE) |
1763 | /* | 1763 | /* |
1764 | * check the h/w rfkill state on resume | 1764 | * check the h/w rfkill state on resume |
1765 | * and start the rfkill poll timer | 1765 | * and start the rfkill poll timer |