aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945.c
diff options
context:
space:
mode:
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 7ce43cbf0faa..d7d40ecc6b64 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 */
68const struct iwl3945_rate_info iwl3945_rates[IWL_RATE_COUNT] = { 68const 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;