diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 303cc8193adc..0728054a22d4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/kernel.h> | 27 | #include <linux/kernel.h> |
28 | #include <linux/module.h> | 28 | #include <linux/module.h> |
29 | #include <linux/init.h> | 29 | #include <linux/init.h> |
30 | #include <linux/slab.h> | ||
30 | #include <linux/pci.h> | 31 | #include <linux/pci.h> |
31 | #include <linux/dma-mapping.h> | 32 | #include <linux/dma-mapping.h> |
32 | #include <linux/delay.h> | 33 | #include <linux/delay.h> |
@@ -184,7 +185,7 @@ static int iwl3945_hwrate_to_plcp_idx(u8 plcp) | |||
184 | { | 185 | { |
185 | int idx; | 186 | int idx; |
186 | 187 | ||
187 | for (idx = 0; idx < IWL_RATE_COUNT; idx++) | 188 | for (idx = 0; idx < IWL_RATE_COUNT_3945; idx++) |
188 | if (iwl3945_rates[idx].plcp == plcp) | 189 | if (iwl3945_rates[idx].plcp == plcp) |
189 | return idx; | 190 | return idx; |
190 | return -1; | 191 | return -1; |
@@ -805,7 +806,7 @@ void iwl3945_hw_build_tx_cmd_rate(struct iwl_priv *priv, | |||
805 | int sta_id, int tx_id) | 806 | int sta_id, int tx_id) |
806 | { | 807 | { |
807 | u16 hw_value = ieee80211_get_tx_rate(priv->hw, info)->hw_value; | 808 | u16 hw_value = ieee80211_get_tx_rate(priv->hw, info)->hw_value; |
808 | u16 rate_index = min(hw_value & 0xffff, IWL_RATE_COUNT - 1); | 809 | u16 rate_index = min(hw_value & 0xffff, IWL_RATE_COUNT_3945); |
809 | u16 rate_mask; | 810 | u16 rate_mask; |
810 | int rate; | 811 | int rate; |
811 | u8 rts_retry_limit; | 812 | u8 rts_retry_limit; |
@@ -2146,7 +2147,7 @@ static void iwl3945_hw_reg_init_channel_groups(struct iwl_priv *priv) | |||
2146 | 2147 | ||
2147 | /* fill in channel group's nominal powers for each rate */ | 2148 | /* fill in channel group's nominal powers for each rate */ |
2148 | for (rate_index = 0; | 2149 | for (rate_index = 0; |
2149 | rate_index < IWL_RATE_COUNT; rate_index++, clip_pwrs++) { | 2150 | rate_index < IWL_RATE_COUNT_3945; rate_index++, clip_pwrs++) { |
2150 | switch (rate_index) { | 2151 | switch (rate_index) { |
2151 | case IWL_RATE_36M_INDEX_TABLE: | 2152 | case IWL_RATE_36M_INDEX_TABLE: |
2152 | if (i == 0) /* B/G */ | 2153 | if (i == 0) /* B/G */ |