diff options
author | Zhu Yi <yi.zhu@intel.com> | 2008-06-30 05:23:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-07-02 15:48:32 -0400 |
commit | 5225640bbe397fea3f38031c53641aaaf11115a8 (patch) | |
tree | 5034139fb100910b83b8205768d01a8e34b2dcb1 /drivers/net/wireless/iwlwifi/iwl-5000.c | |
parent | 914233d68f07d5d9c22630cd5a84fdfd98f39da2 (diff) |
iwlwifi: fix iwl4965 temperature callback calibration issue
The patch fixes the temperature calibration issue introduced by the
patch "iwlwifi: move RX stats to core, and move temperature to handler".
It also remove the second parameter "stats" since it is already copied
to priv->statistics.
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 1be6ca435f3d..7cc73e9a711c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -1422,11 +1422,10 @@ static int iwl5000_send_tx_power(struct iwl_priv *priv) | |||
1422 | NULL); | 1422 | NULL); |
1423 | } | 1423 | } |
1424 | 1424 | ||
1425 | static void iwl5000_temperature(struct iwl_priv *priv, | 1425 | static void iwl5000_temperature(struct iwl_priv *priv) |
1426 | struct iwl_notif_statistics *stats) | ||
1427 | { | 1426 | { |
1428 | /* store temperature from statistics (in Celsius) */ | 1427 | /* store temperature from statistics (in Celsius) */ |
1429 | priv->temperature = le32_to_cpu(stats->general.temperature); | 1428 | priv->temperature = le32_to_cpu(priv->statistics.general.temperature); |
1430 | } | 1429 | } |
1431 | 1430 | ||
1432 | static struct iwl_hcmd_ops iwl5000_hcmd = { | 1431 | static struct iwl_hcmd_ops iwl5000_hcmd = { |