aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2010-04-08 13:34:54 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-04-08 13:34:54 -0400
commit0f2df9eac70423838a1f8d410fd3899ddd88317b (patch)
tree0617f723320d83eca5cef9c964c001014e74213f /drivers/net/wireless/iwlwifi/iwl-3945.c
parent8c11e4ab09ffb975a89802dde0e9aa52a53b8aa5 (diff)
parent1144601118507f8b3b676a9a392584d216d3f2cc (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6 into merge
Conflicts: Documentation/feature-removal-schedule.txt drivers/net/wireless/ath/ath5k/phy.c drivers/net/wireless/iwlwifi/iwl-4965.c drivers/net/wireless/iwlwifi/iwl-agn.c drivers/net/wireless/iwlwifi/iwl-core.c drivers/net/wireless/iwlwifi/iwl-core.h drivers/net/wireless/iwlwifi/iwl-tx.c
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c6
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 e81577b1a253..f88f75dfd96e 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -184,7 +184,7 @@ static int iwl3945_hwrate_to_plcp_idx(u8 plcp)
184{ 184{
185 int idx; 185 int idx;
186 186
187 for (idx = 0; idx < IWL_RATE_COUNT; idx++) 187 for (idx = 0; idx < IWL_RATE_COUNT_3945; idx++)
188 if (iwl3945_rates[idx].plcp == plcp) 188 if (iwl3945_rates[idx].plcp == plcp)
189 return idx; 189 return idx;
190 return -1; 190 return -1;
@@ -755,7 +755,7 @@ void iwl3945_hw_build_tx_cmd_rate(struct iwl_priv *priv,
755 int sta_id, int tx_id) 755 int sta_id, int tx_id)
756{ 756{
757 u16 hw_value = ieee80211_get_tx_rate(priv->hw, info)->hw_value; 757 u16 hw_value = ieee80211_get_tx_rate(priv->hw, info)->hw_value;
758 u16 rate_index = min(hw_value & 0xffff, IWL_RATE_COUNT - 1); 758 u16 rate_index = min(hw_value & 0xffff, IWL_RATE_COUNT_3945);
759 u16 rate_mask; 759 u16 rate_mask;
760 int rate; 760 int rate;
761 u8 rts_retry_limit; 761 u8 rts_retry_limit;
@@ -2088,7 +2088,7 @@ static void iwl3945_hw_reg_init_channel_groups(struct iwl_priv *priv)
2088 2088
2089 /* fill in channel group's nominal powers for each rate */ 2089 /* fill in channel group's nominal powers for each rate */
2090 for (rate_index = 0; 2090 for (rate_index = 0;
2091 rate_index < IWL_RATE_COUNT; rate_index++, clip_pwrs++) { 2091 rate_index < IWL_RATE_COUNT_3945; rate_index++, clip_pwrs++) {
2092 switch (rate_index) { 2092 switch (rate_index) {
2093 case IWL_RATE_36M_INDEX_TABLE: 2093 case IWL_RATE_36M_INDEX_TABLE:
2094 if (i == 0) /* B/G */ 2094 if (i == 0) /* B/G */