080-ath10k_thermal_config.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --- a/drivers/net/wireless/ath/ath10k/Kconfig
  2. +++ b/drivers/net/wireless/ath/ath10k/Kconfig
  3. @@ -85,6 +85,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. @@ -18,7 +18,7 @@ ath10k_core-y += mac.o \
  18. ath10k_core-$(CPTCFG_ATH10K_SPECTRAL) += 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. ath10k_core-$(CONFIG_DEV_COREDUMP) += coredump.o
  26. --- a/drivers/net/wireless/ath/ath10k/thermal.h
  27. +++ b/drivers/net/wireless/ath/ath10k/thermal.h
  28. @@ -36,7 +36,7 @@ struct ath10k_thermal {
  29. int temperature;
  30. };
  31. -#if IS_REACHABLE(CONFIG_THERMAL)
  32. +#if IS_REACHABLE(CPTCFG_ATH10K_THERMAL)
  33. int ath10k_thermal_register(struct ath10k *ar);
  34. void ath10k_thermal_unregister(struct ath10k *ar);
  35. void ath10k_thermal_event_temperature(struct ath10k *ar, int temperature);
  36. --- a/local-symbols
  37. +++ b/local-symbols
  38. @@ -139,6 +139,7 @@ ATH10K_SNOC=
  39. ATH10K_DEBUG=
  40. ATH10K_DEBUGFS=
  41. ATH10K_SPECTRAL=
  42. +ATH10K_THERMAL=
  43. ATH10K_TRACING=
  44. ATH10K_DFS_CERTIFIED=
  45. WCN36XX=