diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-05-15 01:54:02 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-05-21 21:47:56 -0400 |
commit | 1826dcc094466a39c82d4370ccfba694be0bc05b (patch) | |
tree | 6cbcd36daa8adb1723073940384d55dc249ffc59 /drivers/net/wireless/iwlwifi/iwl-4965.c | |
parent | fcab423d716f923d6a7601ba33adf356bef83414 (diff) |
iwlwifi: remove 4965 from iwl4965_rate_info
This patch removes 4965 from iwl4965_rate_info structure and
associated variables.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 922b0a195e9a..1ec53a3848de 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -345,8 +345,8 @@ int iwl4965_hwrate_to_plcp_idx(u32 rate_n_flags) | |||
345 | 345 | ||
346 | /* 4965 legacy rate format, search for match in table */ | 346 | /* 4965 legacy rate format, search for match in table */ |
347 | } else { | 347 | } else { |
348 | for (idx = 0; idx < ARRAY_SIZE(iwl4965_rates); idx++) | 348 | for (idx = 0; idx < ARRAY_SIZE(iwl_rates); idx++) |
349 | if (iwl4965_rates[idx].plcp == (rate_n_flags & 0xFF)) | 349 | if (iwl_rates[idx].plcp == (rate_n_flags & 0xFF)) |
350 | return idx; | 350 | return idx; |
351 | } | 351 | } |
352 | 352 | ||
@@ -1951,7 +1951,7 @@ void iwl4965_hw_build_tx_cmd_rate(struct iwl_priv *priv, | |||
1951 | u16 rate_flags = 0; | 1951 | u16 rate_flags = 0; |
1952 | int rate_idx = min(ctrl->tx_rate->hw_value & 0xffff, IWL_RATE_COUNT - 1); | 1952 | int rate_idx = min(ctrl->tx_rate->hw_value & 0xffff, IWL_RATE_COUNT - 1); |
1953 | 1953 | ||
1954 | rate_plcp = iwl4965_rates[rate_idx].plcp; | 1954 | rate_plcp = iwl_rates[rate_idx].plcp; |
1955 | 1955 | ||
1956 | rts_retry_limit = (is_hcca) ? | 1956 | rts_retry_limit = (is_hcca) ? |
1957 | RTS_HCCA_RETRY_LIMIT : RTS_DFAULT_RETRY_LIMIT; | 1957 | RTS_HCCA_RETRY_LIMIT : RTS_DFAULT_RETRY_LIMIT; |
@@ -2436,7 +2436,7 @@ static void iwl4965_add_radiotap(struct iwl_priv *priv, | |||
2436 | if (rate == -1) | 2436 | if (rate == -1) |
2437 | iwl4965_rt->rt_rate = 0; | 2437 | iwl4965_rt->rt_rate = 0; |
2438 | else | 2438 | else |
2439 | iwl4965_rt->rt_rate = iwl4965_rates[rate].ieee; | 2439 | iwl4965_rt->rt_rate = iwl_rates[rate].ieee; |
2440 | 2440 | ||
2441 | /* | 2441 | /* |
2442 | * "antenna number" | 2442 | * "antenna number" |
@@ -2848,7 +2848,7 @@ static void iwl4965_dbg_report_frame(struct iwl_priv *priv, | |||
2848 | if (unlikely(rate_idx == -1)) | 2848 | if (unlikely(rate_idx == -1)) |
2849 | bitrate = 0; | 2849 | bitrate = 0; |
2850 | else | 2850 | else |
2851 | bitrate = iwl4965_rates[rate_idx].ieee / 2; | 2851 | bitrate = iwl_rates[rate_idx].ieee / 2; |
2852 | 2852 | ||
2853 | /* print frame summary. | 2853 | /* print frame summary. |
2854 | * MAC addresses show just the last byte (for brevity), | 2854 | * MAC addresses show just the last byte (for brevity), |
@@ -3473,7 +3473,7 @@ void iwl4965_add_station(struct iwl_priv *priv, const u8 *addr, int is_ap) | |||
3473 | rate_flags |= RATE_MCS_ANT_B_MSK; /*FIXME:RS*/ | 3473 | rate_flags |= RATE_MCS_ANT_B_MSK; /*FIXME:RS*/ |
3474 | 3474 | ||
3475 | link_cmd.rs_table[i].rate_n_flags = | 3475 | link_cmd.rs_table[i].rate_n_flags = |
3476 | iwl4965_hw_set_rate_n_flags(iwl4965_rates[r].plcp, rate_flags); | 3476 | iwl4965_hw_set_rate_n_flags(iwl_rates[r].plcp, rate_flags); |
3477 | r = iwl4965_get_prev_ieee_rate(r); | 3477 | r = iwl4965_get_prev_ieee_rate(r); |
3478 | } | 3478 | } |
3479 | 3479 | ||