080-ath10k_thermal_config.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --- a/drivers/net/wireless/ath/ath10k/Kconfig
  2. +++ b/drivers/net/wireless/ath/ath10k/Kconfig
  3. @@ -48,6 +48,12 @@ config ATH10K_TRACING
  4. ---help---
  5. Select this to ath10k use tracing infrastructure.
  6. +config ATH10K_THERMAL
  7. + bool "Atheros ath10k thermal monitoring support"
  8. + depends on THERMAL
  9. + ---help---
  10. + Select this to ath10k use hwmon for thermal measurement.
  11. +
  12. config ATH10K_DFS_CERTIFIED
  13. bool "Atheros DFS support for certified platforms"
  14. depends on ATH10K && CFG80211_CERTIFICATION_ONUS
  15. --- a/drivers/net/wireless/ath/ath10k/Makefile
  16. +++ b/drivers/net/wireless/ath/ath10k/Makefile
  17. @@ -17,7 +17,7 @@ ath10k_core-y += mac.o \
  18. ath10k_core-$(CPTCFG_ATH10K_DEBUGFS) += spectral.o
  19. ath10k_core-$(CPTCFG_NL80211_TESTMODE) += testmode.o
  20. ath10k_core-$(CPTCFG_ATH10K_TRACING) += trace.o
  21. -ath10k_core-$(CONFIG_THERMAL) += thermal.o
  22. +ath10k_core-$(CPTCFG_ATH10K_THERMAL) += thermal.o
  23. ath10k_core-$(CPTCFG_MAC80211_DEBUGFS) += debugfs_sta.o
  24. ath10k_core-$(CONFIG_PM) += wow.o
  25. --- a/drivers/net/wireless/ath/ath10k/thermal.h
  26. +++ b/drivers/net/wireless/ath/ath10k/thermal.h
  27. @@ -36,7 +36,7 @@ struct ath10k_thermal {
  28. int temperature;
  29. };
  30. -#if IS_REACHABLE(CONFIG_THERMAL)
  31. +#if IS_REACHABLE(CPTCFG_ATH10K_THERMAL)
  32. int ath10k_thermal_register(struct ath10k *ar);
  33. void ath10k_thermal_unregister(struct ath10k *ar);
  34. void ath10k_thermal_event_temperature(struct ath10k *ar, int temperature);