diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-lib.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c index fd142bee9189..87a9fd8e41eb 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c | |||
@@ -533,9 +533,10 @@ int iwlagn_send_tx_power(struct iwl_priv *priv) | |||
533 | 533 | ||
534 | void iwlagn_temperature(struct iwl_priv *priv) | 534 | void iwlagn_temperature(struct iwl_priv *priv) |
535 | { | 535 | { |
536 | /* store temperature from statistics (in Celsius) */ | 536 | /* store temperature from correct statistics (in Celsius) */ |
537 | priv->temperature = | 537 | priv->temperature = le32_to_cpu((iwl_bt_statistics(priv)) ? |
538 | le32_to_cpu(priv->_agn.statistics.general.common.temperature); | 538 | priv->_agn.statistics_bt.general.common.temperature : |
539 | priv->_agn.statistics.general.common.temperature); | ||
539 | iwl_tt_handler(priv); | 540 | iwl_tt_handler(priv); |
540 | } | 541 | } |
541 | 542 | ||