]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ath10k: move spectral scan support under a separate config symbol
authorMatthias Schiffer <mschiffer@universe-factory.net>
Mon, 27 Nov 2017 17:56:23 +0000 (18:56 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 7 Dec 2017 14:32:03 +0000 (16:32 +0200)
At the moment, spectral scan support, and with it RELAY, is always enabled
with ATH10K_DEBUGFS. Spectral scan support is currently the only user of
RELAY in ath10k, and it unconditionally reserves a relay channel.

Having debugfs support in ath10k is often useful even on very small
embedded routers, where we'd rather like to avoid the code size and RAM
usage of the relay support. While ath10k-based devices usually have more
resources than ath9k-based ones, it makes sense to keep the configuration
symmetric to ath9k, so the same base kernel without RELAY can be used for
both ath9k and ath10k hardware.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/Kconfig
drivers/net/wireless/ath/ath10k/Makefile
drivers/net/wireless/ath/ath10k/spectral.h

index 87f56d0e17a6c6826c2bcaf545893d4c4162a869..deb5ae21a559bef7c24e48dff919b8f7bfec541c 100644 (file)
@@ -47,12 +47,19 @@ config ATH10K_DEBUG
 config ATH10K_DEBUGFS
        bool "Atheros ath10k debugfs support"
        depends on ATH10K && DEBUG_FS
-       select RELAY
        ---help---
          Enabled debugfs support
 
          If unsure, say Y to make it easier to debug problems.
 
+config ATH10K_SPECTRAL
+       bool "Atheros ath10k spectral scan support"
+       depends on ATH10K_DEBUGFS
+       select RELAY
+       default n
+       ---help---
+         Say Y to enable access to the FFT/spectral data via debugfs.
+
 config ATH10K_TRACING
        bool "Atheros ath10k tracing support"
        depends on ATH10K
index 9492177e906332c621dd2aee95b2e28a808ffc54..8d9a59b7144e27aab23686267c5bfae83bff82bd 100644 (file)
@@ -15,7 +15,7 @@ ath10k_core-y += mac.o \
                 p2p.o \
                 swap.o
 
-ath10k_core-$(CONFIG_ATH10K_DEBUGFS) += spectral.o
+ath10k_core-$(CONFIG_ATH10K_SPECTRAL) += spectral.o
 ath10k_core-$(CONFIG_NL80211_TESTMODE) += testmode.o
 ath10k_core-$(CONFIG_ATH10K_TRACING) += trace.o
 ath10k_core-$(CONFIG_THERMAL) += thermal.o
index 89b0ad769d4f98388b619ab7736debd6894749db..b2a2e8ae04b8cf5d9da02fd65d4bf177a1d24660 100644 (file)
@@ -44,7 +44,7 @@ enum ath10k_spectral_mode {
        SPECTRAL_MANUAL,
 };
 
-#ifdef CONFIG_ATH10K_DEBUGFS
+#ifdef CONFIG_ATH10K_SPECTRAL
 
 int ath10k_spectral_process_fft(struct ath10k *ar,
                                struct wmi_phyerr_ev_arg *phyerr,
@@ -85,6 +85,6 @@ static inline void ath10k_spectral_destroy(struct ath10k *ar)
 {
 }
 
-#endif /* CONFIG_ATH10K_DEBUGFS */
+#endif /* CONFIG_ATH10K_SPECTRAL */
 
 #endif /* SPECTRAL_H */