summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath11k/Makefile
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2020-01-08 00:50:04 +0300
committerKalle Valo <kvalo@codeaurora.org>2020-01-26 13:37:06 +0300
commita45ceea5015d5be4bab4f6ce59cffcbeceba7e6c (patch)
tree8866e3b9ab31d536ad13ca6d4672f7b9f64376bc /drivers/net/wireless/ath/ath11k/Makefile
parentab000ea6a3939972b6eaca78046c4cd7d3aeee22 (diff)
downloadlinux-a45ceea5015d5be4bab4f6ce59cffcbeceba7e6c.tar.xz
ath11k: fix debugfs build failure
When CONFIG_ATH11K_DEBUGFS is disabled, but CONFIG_MAC80211_DEBUGFS is turned on, the driver fails to build: drivers/net/wireless/ath/ath11k/debugfs_sta.c: In function 'ath11k_dbg_sta_open_htt_peer_stats': drivers/net/wireless/ath/ath11k/debugfs_sta.c:416:4: error: 'struct ath11k' has no member named 'debug' ar->debug.htt_stats.stats_req = stats_req; ^~ It appears that just using the former symbol is sufficient here, adding a Kconfig dependency takes care of the corner cases. Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/Makefile')
-rw-r--r--drivers/net/wireless/ath/ath11k/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath11k/Makefile b/drivers/net/wireless/ath/ath11k/Makefile
index a91d75c1cfeb..2761d07d938e 100644
--- a/drivers/net/wireless/ath/ath11k/Makefile
+++ b/drivers/net/wireless/ath/ath11k/Makefile
@@ -17,8 +17,7 @@ ath11k-y += core.o \
ce.o \
peer.o
-ath11k-$(CONFIG_ATH11K_DEBUGFS) += debug_htt_stats.o
-ath11k-$(CONFIG_MAC80211_DEBUGFS) += debugfs_sta.o
+ath11k-$(CONFIG_ATH11K_DEBUGFS) += debug_htt_stats.o debugfs_sta.o
ath11k-$(CONFIG_NL80211_TESTMODE) += testmode.o
ath11k-$(CONFIG_ATH11K_TRACING) += trace.o