diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2009-08-07 18:41:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-14 09:13:50 -0400 |
commit | d91b1ba37744bc7fb7524516be855c9fa81142e2 (patch) | |
tree | a824bd986f332fb313a8d9685f410c36babb5545 /drivers/net/wireless/iwlwifi | |
parent | 450ccb36b4d8a18c34643335d3305ec1a781e717 (diff) |
iwlwifi: display correct critical temperature infomation
Do not send CT KILL config command twice and correct critical
temperature informatiom in dmesg
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 44d01a2f2941..36c6e16285de 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -2227,6 +2227,15 @@ void iwl_rf_kill_ct_config(struct iwl_priv *priv) | |||
2227 | 2227 | ||
2228 | ret = iwl_send_cmd_pdu(priv, REPLY_CT_KILL_CONFIG_CMD, | 2228 | ret = iwl_send_cmd_pdu(priv, REPLY_CT_KILL_CONFIG_CMD, |
2229 | sizeof(adv_cmd), &adv_cmd); | 2229 | sizeof(adv_cmd), &adv_cmd); |
2230 | if (ret) | ||
2231 | IWL_ERR(priv, "REPLY_CT_KILL_CONFIG_CMD failed\n"); | ||
2232 | else | ||
2233 | IWL_DEBUG_INFO(priv, "REPLY_CT_KILL_CONFIG_CMD " | ||
2234 | "succeeded, " | ||
2235 | "critical temperature enter is %d," | ||
2236 | "exit is %d\n", | ||
2237 | priv->hw_params.ct_kill_threshold, | ||
2238 | priv->hw_params.ct_kill_exit_threshold); | ||
2230 | break; | 2239 | break; |
2231 | default: | 2240 | default: |
2232 | cmd.critical_temperature_R = | 2241 | cmd.critical_temperature_R = |
@@ -2234,16 +2243,15 @@ void iwl_rf_kill_ct_config(struct iwl_priv *priv) | |||
2234 | 2243 | ||
2235 | ret = iwl_send_cmd_pdu(priv, REPLY_CT_KILL_CONFIG_CMD, | 2244 | ret = iwl_send_cmd_pdu(priv, REPLY_CT_KILL_CONFIG_CMD, |
2236 | sizeof(cmd), &cmd); | 2245 | sizeof(cmd), &cmd); |
2246 | if (ret) | ||
2247 | IWL_ERR(priv, "REPLY_CT_KILL_CONFIG_CMD failed\n"); | ||
2248 | else | ||
2249 | IWL_DEBUG_INFO(priv, "REPLY_CT_KILL_CONFIG_CMD " | ||
2250 | "succeeded, " | ||
2251 | "critical temperature is %d\n", | ||
2252 | priv->hw_params.ct_kill_threshold); | ||
2237 | break; | 2253 | break; |
2238 | } | 2254 | } |
2239 | ret = iwl_send_cmd_pdu(priv, REPLY_CT_KILL_CONFIG_CMD, | ||
2240 | sizeof(cmd), &cmd); | ||
2241 | if (ret) | ||
2242 | IWL_ERR(priv, "REPLY_CT_KILL_CONFIG_CMD failed\n"); | ||
2243 | else | ||
2244 | IWL_DEBUG_INFO(priv, "REPLY_CT_KILL_CONFIG_CMD succeeded, " | ||
2245 | "critical temperature is %d\n", | ||
2246 | cmd.critical_temperature_R); | ||
2247 | } | 2255 | } |
2248 | EXPORT_SYMBOL(iwl_rf_kill_ct_config); | 2256 | EXPORT_SYMBOL(iwl_rf_kill_ct_config); |
2249 | 2257 | ||