aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2012-02-22 02:10:44 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-02-27 14:06:35 -0500
commit4daa7760e2da9324e740f7d872970fa91c8ea6f0 (patch)
treecfd5d6988d85c8d41efd6eceef87c97107ea9273 /drivers/net/wireless/ath
parentc0ac53fa5725aa9e571386d3e7249c1be50eca10 (diff)
ath9k: Use CONFIG_ATH9K_BTCOEX_SUPPORT
This patch uses CONFIG_ATH9K_BTCOEX_SUPPORT to conditionally compile btcoex-related code in the driver core. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath9k/Makefile4
-rw-r--r--drivers/net/wireless/ath/ath9k/ath9k.h28
-rw-r--r--drivers/net/wireless/ath/ath9k/gpio.c4
3 files changed, 34 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/Makefile b/drivers/net/wireless/ath/ath9k/Makefile
index da02242499af..b3c7b12a3e2c 100644
--- a/drivers/net/wireless/ath/ath9k/Makefile
+++ b/drivers/net/wireless/ath/ath9k/Makefile
@@ -3,9 +3,9 @@ ath9k-y += beacon.o \
3 init.o \ 3 init.o \
4 main.o \ 4 main.o \
5 recv.o \ 5 recv.o \
6 xmit.o \ 6 xmit.o
7 mci.o \
8 7
8ath9k-$(CONFIG_ATH9K_BTCOEX_SUPPORT) += mci.o
9ath9k-$(CONFIG_ATH9K_RATE_CONTROL) += rc.o 9ath9k-$(CONFIG_ATH9K_RATE_CONTROL) += rc.o
10ath9k-$(CONFIG_ATH9K_PCI) += pci.o 10ath9k-$(CONFIG_ATH9K_PCI) += pci.o
11ath9k-$(CONFIG_ATH9K_AHB) += ahb.o 11ath9k-$(CONFIG_ATH9K_AHB) += ahb.o
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index 23145ce9ea3f..c2ccba676eca 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -454,6 +454,7 @@ struct ath_btcoex {
454 struct ath_mci_profile mci; 454 struct ath_mci_profile mci;
455}; 455};
456 456
457#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
457int ath9k_init_btcoex(struct ath_softc *sc); 458int ath9k_init_btcoex(struct ath_softc *sc);
458void ath9k_deinit_btcoex(struct ath_softc *sc); 459void ath9k_deinit_btcoex(struct ath_softc *sc);
459void ath9k_start_btcoex(struct ath_softc *sc); 460void ath9k_start_btcoex(struct ath_softc *sc);
@@ -462,6 +463,30 @@ void ath9k_btcoex_timer_resume(struct ath_softc *sc);
462void ath9k_btcoex_timer_pause(struct ath_softc *sc); 463void ath9k_btcoex_timer_pause(struct ath_softc *sc);
463void ath9k_btcoex_handle_interrupt(struct ath_softc *sc, u32 status); 464void ath9k_btcoex_handle_interrupt(struct ath_softc *sc, u32 status);
464u16 ath9k_btcoex_aggr_limit(struct ath_softc *sc, u32 max_4ms_framelen); 465u16 ath9k_btcoex_aggr_limit(struct ath_softc *sc, u32 max_4ms_framelen);
466#else
467static inline int ath9k_init_btcoex(struct ath_softc *sc)
468{
469 return 0;
470}
471static inline void ath9k_deinit_btcoex(struct ath_softc *sc)
472{
473}
474static inline void ath9k_start_btcoex(struct ath_softc *sc)
475{
476}
477static inline void ath9k_stop_btcoex(struct ath_softc *sc)
478{
479}
480static inline void ath9k_btcoex_handle_interrupt(struct ath_softc *sc,
481 u32 status)
482{
483}
484static inline u16 ath9k_btcoex_aggr_limit(struct ath_softc *sc,
485 u32 max_4ms_framelen)
486{
487 return 0;
488}
489#endif /* CONFIG_ATH9K_BTCOEX_SUPPORT */
465 490
466/********************/ 491/********************/
467/* LED Control */ 492/* LED Control */
@@ -655,8 +680,11 @@ struct ath_softc {
655 struct ath_beacon_config cur_beacon_conf; 680 struct ath_beacon_config cur_beacon_conf;
656 struct delayed_work tx_complete_work; 681 struct delayed_work tx_complete_work;
657 struct delayed_work hw_pll_work; 682 struct delayed_work hw_pll_work;
683
684#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
658 struct ath_btcoex btcoex; 685 struct ath_btcoex btcoex;
659 struct ath_mci_coex mci_coex; 686 struct ath_mci_coex mci_coex;
687#endif
660 688
661 struct ath_descdma txsdma; 689 struct ath_descdma txsdma;
662 690
diff --git a/drivers/net/wireless/ath/ath9k/gpio.c b/drivers/net/wireless/ath/ath9k/gpio.c
index e870251cdd1b..77b3eb7b7a33 100644
--- a/drivers/net/wireless/ath/ath9k/gpio.c
+++ b/drivers/net/wireless/ath/ath9k/gpio.c
@@ -110,6 +110,8 @@ void ath_start_rfkill_poll(struct ath_softc *sc)
110 wiphy_rfkill_start_polling(sc->hw->wiphy); 110 wiphy_rfkill_start_polling(sc->hw->wiphy);
111} 111}
112 112
113#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
114
113/******************/ 115/******************/
114/* BTCOEX */ 116/* BTCOEX */
115/******************/ 117/******************/
@@ -423,3 +425,5 @@ int ath9k_init_btcoex(struct ath_softc *sc)
423 425
424 return 0; 426 return 0;
425} 427}
428
429#endif /* CONFIG_ATH9K_BTCOEX_SUPPORT */