diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2008-12-18 21:37:12 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:58:58 -0500 |
commit | d9829a67f953379b5cab6b78ae8f7a879a591eb1 (patch) | |
tree | a41656685e3ecda9ecdec06ca06efc5367485f05 /drivers/net/wireless/iwlwifi/iwl-3945.c | |
parent | 250bdd216c95907760b3fcc3aac1ed436d21c66c (diff) |
iwl3945: Use iwl-agn-rs.h rates definitions.
A lot of rate relates definition are shared between iwl-3945-rs.h and
iwl-agn-rs.h. Let's just use the agn version, and add the 3945 specific
constants there.
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-3945.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 7ce43cbf0fa..d7d40ecc6b6 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -43,7 +43,7 @@ | |||
43 | #include "iwl-commands.h" | 43 | #include "iwl-commands.h" |
44 | #include "iwl-3945.h" | 44 | #include "iwl-3945.h" |
45 | #include "iwl-helpers.h" | 45 | #include "iwl-helpers.h" |
46 | #include "iwl-3945-rs.h" | 46 | #include "iwl-agn-rs.h" |
47 | 47 | ||
48 | #define IWL_DECLARE_RATE_INFO(r, ip, in, rp, rn, pp, np) \ | 48 | #define IWL_DECLARE_RATE_INFO(r, ip, in, rp, rn, pp, np) \ |
49 | [IWL_RATE_##r##M_INDEX] = { IWL_RATE_##r##M_PLCP, \ | 49 | [IWL_RATE_##r##M_INDEX] = { IWL_RATE_##r##M_PLCP, \ |
@@ -65,7 +65,7 @@ | |||
65 | * maps to IWL_RATE_INVALID | 65 | * maps to IWL_RATE_INVALID |
66 | * | 66 | * |
67 | */ | 67 | */ |
68 | const struct iwl3945_rate_info iwl3945_rates[IWL_RATE_COUNT] = { | 68 | const struct iwl3945_rate_info iwl3945_rates[IWL_RATE_COUNT_3945] = { |
69 | IWL_DECLARE_RATE_INFO(1, INV, 2, INV, 2, INV, 2), /* 1mbps */ | 69 | IWL_DECLARE_RATE_INFO(1, INV, 2, INV, 2, INV, 2), /* 1mbps */ |
70 | IWL_DECLARE_RATE_INFO(2, 1, 5, 1, 5, 1, 5), /* 2mbps */ | 70 | IWL_DECLARE_RATE_INFO(2, 1, 5, 1, 5, 1, 5), /* 2mbps */ |
71 | IWL_DECLARE_RATE_INFO(5, 2, 6, 2, 11, 2, 11), /*5.5mbps */ | 71 | IWL_DECLARE_RATE_INFO(5, 2, 6, 2, 11, 2, 11), /*5.5mbps */ |
@@ -1700,7 +1700,7 @@ int iwl3945_hw_reg_send_txpower(struct iwl3945_priv *priv) | |||
1700 | /* fill cmd with power settings for all rates for current channel */ | 1700 | /* fill cmd with power settings for all rates for current channel */ |
1701 | /* Fill OFDM rate */ | 1701 | /* Fill OFDM rate */ |
1702 | for (rate_idx = IWL_FIRST_OFDM_RATE, i = 0; | 1702 | for (rate_idx = IWL_FIRST_OFDM_RATE, i = 0; |
1703 | rate_idx <= IWL_LAST_OFDM_RATE; rate_idx++, i++) { | 1703 | rate_idx <= IWL39_LAST_OFDM_RATE; rate_idx++, i++) { |
1704 | 1704 | ||
1705 | txpower.power[i].tpc = ch_info->power_info[i].tpc; | 1705 | txpower.power[i].tpc = ch_info->power_info[i].tpc; |
1706 | txpower.power[i].rate = iwl3945_rates[rate_idx].plcp; | 1706 | txpower.power[i].rate = iwl3945_rates[rate_idx].plcp; |