aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-5000.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2008-12-18 21:37:11 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:58:57 -0500
commit250bdd216c95907760b3fcc3aac1ed436d21c66c (patch)
tree82f3c0834b1529d3e283833d48ff70b76248168e /drivers/net/wireless/iwlwifi/iwl-5000.c
parent0f741d9992ad043026218677c06042ac9f834f8f (diff)
iwl3945: Have consistant and not redefined HW constants
SRAM addresses are different for 3945, 4065, and 5000, let's give them different names. Also, the RSSI_OFFSET is different for 3945 and 4965, thus they should be named differently. Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com> Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@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/iwl-5000.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index 66d053d28a74..338444ab003e 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -580,7 +580,8 @@ static int iwl5000_load_given_ucode(struct iwl_priv *priv,
580{ 580{
581 int ret = 0; 581 int ret = 0;
582 582
583 ret = iwl5000_load_section(priv, inst_image, RTC_INST_LOWER_BOUND); 583 ret = iwl5000_load_section(priv, inst_image,
584 IWL50_RTC_INST_LOWER_BOUND);
584 if (ret) 585 if (ret)
585 return ret; 586 return ret;
586 587
@@ -600,7 +601,7 @@ static int iwl5000_load_given_ucode(struct iwl_priv *priv,
600 priv->ucode_write_complete = 0; 601 priv->ucode_write_complete = 0;
601 602
602 ret = iwl5000_load_section( 603 ret = iwl5000_load_section(
603 priv, data_image, RTC_DATA_LOWER_BOUND); 604 priv, data_image, IWL50_RTC_DATA_LOWER_BOUND);
604 if (ret) 605 if (ret)
605 return ret; 606 return ret;
606 607
@@ -1356,7 +1357,7 @@ static void iwl5000_rx_handler_setup(struct iwl_priv *priv)
1356 1357
1357static int iwl5000_hw_valid_rtc_data_addr(u32 addr) 1358static int iwl5000_hw_valid_rtc_data_addr(u32 addr)
1358{ 1359{
1359 return (addr >= RTC_DATA_LOWER_BOUND) && 1360 return (addr >= IWL50_RTC_DATA_LOWER_BOUND) &&
1360 (addr < IWL50_RTC_DATA_UPPER_BOUND); 1361 (addr < IWL50_RTC_DATA_UPPER_BOUND);
1361} 1362}
1362 1363
@@ -1460,7 +1461,7 @@ static int iwl5000_calc_rssi(struct iwl_priv *priv,
1460 1461
1461 /* dBm = max_rssi dB - agc dB - constant. 1462 /* dBm = max_rssi dB - agc dB - constant.
1462 * Higher AGC (higher radio gain) means lower signal. */ 1463 * Higher AGC (higher radio gain) means lower signal. */
1463 return max_rssi - agc - IWL_RSSI_OFFSET; 1464 return max_rssi - agc - IWL49_RSSI_OFFSET;
1464} 1465}
1465 1466
1466static struct iwl_hcmd_ops iwl5000_hcmd = { 1467static struct iwl_hcmd_ops iwl5000_hcmd = {