diff options
author | Pradeep Kumar Chitrapu <pradeepc@codeaurora.org> | 2020-02-15 05:55:22 +0530 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-03-11 18:47:18 +0200 |
commit | a41d10348b01fe48dc21c1e6d83a6bb3e4838df2 (patch) | |
tree | 0cbbf47b643c64f670accde1f820adf2bc844020 /drivers/net/wireless/ath/ath11k/mac.c | |
parent | 2a63bbca06b2508a8ae72956cddffbb53605e9b8 (diff) | |
download | lwn-a41d10348b01fe48dc21c1e6d83a6bb3e4838df2.tar.gz lwn-a41d10348b01fe48dc21c1e6d83a6bb3e4838df2.zip |
ath11k: add thermal sensor device support
Temperature sensor generates electrical analog voltage from temperature
of each chain. The analog voltage is converted to digital value through
ADC. For reading temperature values fom user space, hw monitoring device
is used.
Whenever the user requests for current temperature, the driver sends WMI
command and wait for response. For reading temperature,
cat /sys/class/ieee80211/phy*/device/hwmon/hwmon2/temp1_input
Signed-off-by: Pradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath11k/mac.c')
-rw-r--r-- | drivers/net/wireless/ath/ath11k/mac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index f5e171c26bd5..e28f5a348be6 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -5905,6 +5905,8 @@ int ath11k_mac_allocate(struct ath11k_base *ab) init_completion(&ar->bss_survey_done); init_completion(&ar->scan.started); init_completion(&ar->scan.completed); + init_completion(&ar->thermal.wmi_sync); + INIT_DELAYED_WORK(&ar->scan.timeout, ath11k_scan_timeout_work); INIT_WORK(&ar->regd_update_work, ath11k_regd_update_work); |