[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191213012417.130719-1-maowenan@huawei.com>
Date: Fri, 13 Dec 2019 09:24:17 +0800
From: Mao Wenan <maowenan@...wei.com>
To: <kvalo@...eaurora.org>, <davem@...emloft.net>,
<msinada@...eaurora.org>, <periyasa@...eaurora.org>,
<mpubbise@...eaurora.org>, <julia.lawall@...6.fr>,
<milehu@...eaurora.org>
CC: <ath11k@...ts.infradead.org>, <linux-wireless@...r.kernel.org>,
<netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<kernel-janitors@...r.kernel.org>
Subject: [PATCH -next] ath11k: add dependency for struct ath11k member debug
If CONFIG_ATH11K, CONFIG_MAC80211_DEBUGFS are set,
and CONFIG_ATH11K_DEBUGFS is not set, below error can be found,
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:411:4: error: struct ath11k has no member named debug
ar->debug.htt_stats.stats_req = stats_req;
It is to add the dependency for the member of struct ath11k.
Fixes: d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
Signed-off-by: Mao Wenan <maowenan@...wei.com>
---
drivers/net/wireless/ath/ath11k/debugfs_sta.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/wireless/ath/ath11k/debugfs_sta.c b/drivers/net/wireless/ath/ath11k/debugfs_sta.c
index 3c5f931..bcc51d7 100644
--- a/drivers/net/wireless/ath/ath11k/debugfs_sta.c
+++ b/drivers/net/wireless/ath/ath11k/debugfs_sta.c
@@ -408,7 +408,9 @@ ath11k_dbg_sta_open_htt_peer_stats(struct inode *inode, struct file *file)
return -ENOMEM;
mutex_lock(&ar->conf_mutex);
+#ifdef CONFIG_ATH11K_DEBUGFS
ar->debug.htt_stats.stats_req = stats_req;
+#endif
stats_req->type = ATH11K_DBG_HTT_EXT_STATS_PEER_INFO;
memcpy(stats_req->peer_addr, sta->addr, ETH_ALEN);
ret = ath11k_dbg_htt_stats_req(ar);
--
2.7.4
Powered by blists - more mailing lists