080-ath10k_thermal_config.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --- a/drivers/net/wireless/ath/ath10k/Kconfig
  2. +++ b/drivers/net/wireless/ath/ath10k/Kconfig
  3. @@ -65,6 +65,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);
  35. --- a/local-symbols
  36. +++ b/local-symbols
  37. @@ -139,6 +139,7 @@ ATH10K_SDIO=
  38. ATH10K_USB=
  39. ATH10K_DEBUG=
  40. ATH10K_DEBUGFS=
  41. +ATH10K_THERMAL=
  42. ATH10K_TRACING=
  43. ATH10K_DFS_CERTIFIED=
  44. WCN36XX=