]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: fix debugfs build failure
authorArnd Bergmann <arnd@arndb.de>
Tue, 7 Jan 2020 21:50:04 +0000 (22:50 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 26 Jan 2020 10:37:06 +0000 (12:37 +0200)
commitdd162b9cdc6fafdc24629ed61e28a4adc2ab4c58
tree8866e3b9ab31d536ad13ca6d4672f7b9f64376bc
parentdc9b450173ebfd171bd935c708922c6ab8c69ed8
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: cb31f0c88272 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath11k/Kconfig
drivers/net/wireless/ath/ath11k/Makefile
drivers/net/wireless/ath/ath11k/debug.h
drivers/net/wireless/ath/ath11k/mac.c