mac80111: fix build error without CONFIG_ATH11K_DEBUGFS
PATCH 1/1 mac80111: fix build error without CONFIG_ATH11K_DEBUGFS
If CONFIG_ATH11K_DEBUGFS is n, build fails:
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;
^~and many more similar messages.
Select ATH11K_DEBUGFS under config MAC80211_DEBUGFS to fix this.
--- net/mac80211/Kconfig | 1 + 1 file changed, 1 insertion(+)
net/mac80211/Kconfig +1 -0
@@ -77,6 +77,7 @@ config MAC80211_LEDS config MAC80211_DEBUGFS bool "Export mac80211 internals in DebugFS" + select ATH11K_DEBUGFS depends on MAC80211 && DEBUG_FS ---help--- Select this to see extensive information about
Signature · 1 line
2.7.4
Johannes Berg
maintainerQuoted 9 lines · Chen Zhou
If
CONFIG_ATH11K_DEBUGFSis n, build fails:
drivers/net/wireless/ath/ath11k/debugfs_sta.c: In functionath11k_dbg_sta_open_htt_peer_stats:drivers/net/wireless/ath/ath11k/debugfs_sta.c:416:4: error: struct ath11k has no member named debugar->debug.htt_stats.stats_req = stats_req; ^~and many more similar messages.
Select
ATH11K_DEBUGFSunder configMAC80211_DEBUGFSto fix this.
Heh, no. You need to find a way in ath11 to fix this.
johannes
Hi johannes,
Quoted 9 lines · Johannes Berg
Quoted 8 lines · Chen Zhou
If
CONFIG_ATH11K_DEBUGFSis n, build fails:
drivers/net/wireless/ath/ath11k/debugfs_sta.c: In functionath11k_dbg_sta_open_htt_peer_stats:drivers/net/wireless/ath/ath11k/debugfs_sta.c:416:4: error: struct ath11k has no member named debugar->debug.htt_stats.stats_req = stats_req; ^~and many more similar messages.
Quoted 3 lines
Quoted 1 line
Select
ATH11K_DEBUGFSunder configMAC80211_DEBUGFSto fix this.Heh, no. You need to find a way in ath11 to fix this.
In file drivers/net/wireless/ath/ath11k/Makefile, "ath11k-$(CONFIG_MAC80211_DEBUGFS) += debugfs_sta.o", that is, debugfs_sta only compiled when CONFIG_MAC80211_DEBUGFS is y.
Any suggestions about this?
Thanks,
Chen Zhou
Quoted 6 lines
johannes
.
+ ath11k
Quoted 12 lines · Chen Zhou
Hi johannes,
Quoted 9 lines · Johannes Berg
Quoted 8 lines · Chen Zhou
If
CONFIG_ATH11K_DEBUGFSis n, build fails:
drivers/net/wireless/ath/ath11k/debugfs_sta.c: In functionath11k_dbg_sta_open_htt_peer_stats:drivers/net/wireless/ath/ath11k/debugfs_sta.c:416:4: error: struct ath11k has no member named debugar->debug.htt_stats.stats_req = stats_req; ^~and many more similar messages.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Select
ATH11K_DEBUGFSunder configMAC80211_DEBUGFSto fix this.Heh, no. You need to find a way in ath11 to fix this.
In file
drivers/net/wireless/ath/ath11k/Makefile, "ath11k-$(CONFIG_MAC80211_DEBUGFS) += debugfs_sta.o", that is,debugfs_staonly compiled whenCONFIG_MAC80211_DEBUGFSis y.Any suggestions about this?
Arnd already fixed this:
https://patchwork.kernel.org/patch/11321921/
I'm planning to apply the patch soon.
Signature · 1 line
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches