b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- a/drivers/net/wireless/ath/ath10k/Kconfig |
| 2 | +++ b/drivers/net/wireless/ath/ath10k/Kconfig |
| 3 | @@ -86,6 +86,12 @@ config ATH10K_TRACING |
| 4 | help |
| 5 | Select this to ath10k use tracing infrastructure. |
| 6 | |
| 7 | +config ATH10K_THERMAL |
| 8 | + bool "Atheros ath10k thermal monitoring support" |
| 9 | + depends on THERMAL |
| 10 | + ---help--- |
| 11 | + Select this to ath10k use hwmon for thermal measurement. |
| 12 | + |
| 13 | config ATH10K_DFS_CERTIFIED |
| 14 | bool "Atheros DFS support for certified platforms" |
| 15 | depends on ATH10K && CFG80211_CERTIFICATION_ONUS |
| 16 | --- a/drivers/net/wireless/ath/ath10k/Makefile |
| 17 | +++ b/drivers/net/wireless/ath/ath10k/Makefile |
| 18 | @@ -18,7 +18,7 @@ ath10k_core-y += mac.o \ |
| 19 | ath10k_core-$(CPTCFG_ATH10K_SPECTRAL) += spectral.o |
| 20 | ath10k_core-$(CPTCFG_NL80211_TESTMODE) += testmode.o |
| 21 | ath10k_core-$(CPTCFG_ATH10K_TRACING) += trace.o |
| 22 | -ath10k_core-$(CONFIG_THERMAL) += thermal.o |
| 23 | +ath10k_core-$(CPTCFG_ATH10K_THERMAL) += thermal.o |
| 24 | ath10k_core-$(CPTCFG_MAC80211_DEBUGFS) += debugfs_sta.o |
| 25 | ath10k_core-$(CONFIG_PM) += wow.o |
| 26 | ath10k_core-$(CONFIG_DEV_COREDUMP) += coredump.o |
| 27 | --- a/drivers/net/wireless/ath/ath10k/thermal.h |
| 28 | +++ b/drivers/net/wireless/ath/ath10k/thermal.h |
| 29 | @@ -25,7 +25,7 @@ struct ath10k_thermal { |
| 30 | int temperature; |
| 31 | }; |
| 32 | |
| 33 | -#if IS_REACHABLE(CONFIG_THERMAL) |
| 34 | +#if IS_REACHABLE(CPTCFG_ATH10K_THERMAL) |
| 35 | int ath10k_thermal_register(struct ath10k *ar); |
| 36 | void ath10k_thermal_unregister(struct ath10k *ar); |
| 37 | void ath10k_thermal_event_temperature(struct ath10k *ar, int temperature); |
| 38 | --- a/local-symbols |
| 39 | +++ b/local-symbols |
| 40 | @@ -142,6 +142,7 @@ ATH10K_SNOC= |
| 41 | ATH10K_DEBUG= |
| 42 | ATH10K_DEBUGFS= |
| 43 | ATH10K_SPECTRAL= |
| 44 | +ATH10K_THERMAL= |
| 45 | ATH10K_TRACING= |
| 46 | ATH10K_DFS_CERTIFIED= |
| 47 | WCN36XX= |