diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2008-06-11 21:47:13 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 12:18:09 -0400 |
commit | 47f4a5871614756627d7209e0569b58faf99b0d9 (patch) | |
tree | 5800fc8d160fb9d67ed7ea4aa3f562ef458b221a /drivers/net/wireless/iwlwifi/iwl-4965.c | |
parent | f53696de6722a4aac00b76e25a5321c01e88a55f (diff) |
iwlwifi: move iwl4965_rf_kill_ct_config to iwl-core.c
This patch moves iwl4965_rf_kill_ct_config to iwl-core.c.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
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-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 87648d0536b3..aeb29b9bf3c1 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -556,30 +556,6 @@ out: | |||
556 | 556 | ||
557 | #define REG_RECALIB_PERIOD (60) | 557 | #define REG_RECALIB_PERIOD (60) |
558 | 558 | ||
559 | void iwl4965_rf_kill_ct_config(struct iwl_priv *priv) | ||
560 | { | ||
561 | struct iwl4965_ct_kill_config cmd; | ||
562 | unsigned long flags; | ||
563 | int ret = 0; | ||
564 | |||
565 | spin_lock_irqsave(&priv->lock, flags); | ||
566 | iwl_write32(priv, CSR_UCODE_DRV_GP1_CLR, | ||
567 | CSR_UCODE_DRV_GP1_REG_BIT_CT_KILL_EXIT); | ||
568 | spin_unlock_irqrestore(&priv->lock, flags); | ||
569 | |||
570 | cmd.critical_temperature_R = | ||
571 | cpu_to_le32(priv->hw_params.ct_kill_threshold); | ||
572 | |||
573 | ret = iwl_send_cmd_pdu(priv, REPLY_CT_KILL_CONFIG_CMD, | ||
574 | sizeof(cmd), &cmd); | ||
575 | if (ret) | ||
576 | IWL_ERROR("REPLY_CT_KILL_CONFIG_CMD failed\n"); | ||
577 | else | ||
578 | IWL_DEBUG_INFO("REPLY_CT_KILL_CONFIG_CMD succeeded, " | ||
579 | "critical temperature is %d\n", | ||
580 | cmd.critical_temperature_R); | ||
581 | } | ||
582 | |||
583 | /* Reset differential Rx gains in NIC to prepare for chain noise calibration. | 559 | /* Reset differential Rx gains in NIC to prepare for chain noise calibration. |
584 | * Called after every association, but this runs only once! | 560 | * Called after every association, but this runs only once! |
585 | * ... once chain noise is calibrated the first time, it's good forever. */ | 561 | * ... once chain noise is calibrated the first time, it's good forever. */ |