aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2008-04-24 14:55:29 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-07 15:02:24 -0400
commitc031bf806fef4854b02266a4105f55ed31f2d1a8 (patch)
tree71e2012402b78be835d97ec0082747b5a40372c3 /drivers/net/wireless
parentfdd3e8a4ff96d03121b21946bfa684f3b5d783c6 (diff)
iwlwifi-5000: update the CT-Kill value for 5000 series
This patch upadtes the CT-Kill value for 5000 series. Signed-off-by: Assaf Krauss <assaf.krauss@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index 545970b0caa1..7c42bbffff59 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -181,6 +181,21 @@ static int iwl5000_hw_set_hw_params(struct iwl_priv *priv)
181 IWL_ANTENNA_AUX | 0x04); 181 IWL_ANTENNA_AUX | 0x04);
182 break; 182 break;
183 } 183 }
184
185 switch (priv->hw_rev & CSR_HW_REV_TYPE_MSK) {
186 case CSR_HW_REV_TYPE_5100:
187 case CSR_HW_REV_TYPE_5300:
188 /* 5X00 wants in Celsius */
189 priv->hw_params.ct_kill_threshold = CT_KILL_THRESHOLD;
190 break;
191 case CSR_HW_REV_TYPE_5150:
192 case CSR_HW_REV_TYPE_5350:
193 /* 5X50 wants in Kelvin */
194 priv->hw_params.ct_kill_threshold =
195 CELSIUS_TO_KELVIN(CT_KILL_THRESHOLD);
196 break;
197 }
198
184 return 0; 199 return 0;
185} 200}
186static struct iwl_hcmd_ops iwl5000_hcmd = { 201static struct iwl_hcmd_ops iwl5000_hcmd = {