summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2016-01-06 21:35:54 +0100
committerBjørn Mork <bjorn@mork.no>2016-01-06 21:35:54 +0100
commit5f3bb9900f79061fd793205260ebb0ef91669d4d (patch)
treef5041b0fa5752acb79e5b4fa50d55bbcd3231639
parent28799d643c91a3867c4c47a6f40f45a7c79a0e63 (diff)
temp debug20160106-4
Signed-off-by: Bjørn Mork <bjorn@mork.no>
-rw-r--r--fwcmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fwcmd.c b/fwcmd.c
index 15bf20e..528c92c 100644
--- a/fwcmd.c
+++ b/fwcmd.c
@@ -2709,7 +2709,8 @@ int mwl_fwcmd_get_temp(struct ieee80211_hw *hw, u32 *temp)
return -EIO;
}
- *temp = le32_to_cpu(pcmd->celcius);
+ wiphy_info(hw->wiphy, "got celcius=%u, raw=%u\n", pcmd->celcius, pcmd->raw_data);
+ *temp = (le32_to_cpu(pcmd->celcius) - 32) * 5 / 9;
mutex_unlock(&priv->fwcmd_mutex);