diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 2b48f1b19140..5abfd56e9bb4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -1433,6 +1433,12 @@ static int iwl5000_send_tx_power(struct iwl_priv *priv) | |||
1433 | NULL); | 1433 | NULL); |
1434 | } | 1434 | } |
1435 | 1435 | ||
1436 | static void iwl5000_temperature(struct iwl_priv *priv, | ||
1437 | struct iwl_notif_statistics *stats) | ||
1438 | { | ||
1439 | /* store temperature from statistics (in Celsius) */ | ||
1440 | priv->temperature = le32_to_cpu(stats->general.temperature); | ||
1441 | } | ||
1436 | 1442 | ||
1437 | static struct iwl_hcmd_ops iwl5000_hcmd = { | 1443 | static struct iwl_hcmd_ops iwl5000_hcmd = { |
1438 | .rxon_assoc = iwl5000_send_rxon_assoc, | 1444 | .rxon_assoc = iwl5000_send_rxon_assoc, |
@@ -1462,6 +1468,7 @@ static struct iwl_lib_ops iwl5000_lib = { | |||
1462 | .init_alive_start = iwl5000_init_alive_start, | 1468 | .init_alive_start = iwl5000_init_alive_start, |
1463 | .alive_notify = iwl5000_alive_notify, | 1469 | .alive_notify = iwl5000_alive_notify, |
1464 | .send_tx_power = iwl5000_send_tx_power, | 1470 | .send_tx_power = iwl5000_send_tx_power, |
1471 | .temperature = iwl5000_temperature, | ||
1465 | .apm_ops = { | 1472 | .apm_ops = { |
1466 | .init = iwl5000_apm_init, | 1473 | .init = iwl5000_apm_init, |
1467 | .reset = iwl5000_apm_reset, | 1474 | .reset = iwl5000_apm_reset, |