diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-06-11 21:47:11 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 12:18:08 -0400 |
commit | e7d326ac437e9e9425dcd79382f4e5f6ca31fb16 (patch) | |
tree | 82dad05f71fd368c98f30b39eb15921c17487a78 /drivers/net/wireless/iwlwifi/iwl-4965-rs.c | |
parent | 2a421b91d6fe89e27ded7544a25449c0b050098f (diff) |
iwlwifi: move rate helpers to iwlcore
This patch moves rate helpers to iwlcore.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965-rs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-rs.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c index 77884e16a134..b9a4e4b19ab5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c | |||
@@ -536,7 +536,7 @@ static int rs_get_tbl_info_from_mcs(const u32 rate_n_flags, | |||
536 | u8 num_of_ant = get_num_of_ant_from_rate(rate_n_flags); | 536 | u8 num_of_ant = get_num_of_ant_from_rate(rate_n_flags); |
537 | u8 mcs; | 537 | u8 mcs; |
538 | 538 | ||
539 | *rate_idx = iwl4965_hwrate_to_plcp_idx(rate_n_flags); | 539 | *rate_idx = iwl_hwrate_to_plcp_idx(rate_n_flags); |
540 | 540 | ||
541 | if (*rate_idx == IWL_RATE_INVALID) { | 541 | if (*rate_idx == IWL_RATE_INVALID) { |
542 | *rate_idx = -1; | 542 | *rate_idx = -1; |
@@ -1811,8 +1811,7 @@ static void rs_rate_scale_perform(struct iwl_priv *priv, | |||
1811 | tbl = &(lq_sta->lq_info[active_tbl]); | 1811 | tbl = &(lq_sta->lq_info[active_tbl]); |
1812 | 1812 | ||
1813 | /* Revert to "active" rate and throughput info */ | 1813 | /* Revert to "active" rate and throughput info */ |
1814 | index = iwl4965_hwrate_to_plcp_idx( | 1814 | index = iwl_hwrate_to_plcp_idx(tbl->current_rate); |
1815 | tbl->current_rate); | ||
1816 | current_tpt = lq_sta->last_tpt; | 1815 | current_tpt = lq_sta->last_tpt; |
1817 | 1816 | ||
1818 | /* Need to set up a new rate table in uCode */ | 1817 | /* Need to set up a new rate table in uCode */ |
@@ -1966,8 +1965,7 @@ lq_update: | |||
1966 | rs_rate_scale_clear_window(&(tbl->win[i])); | 1965 | rs_rate_scale_clear_window(&(tbl->win[i])); |
1967 | 1966 | ||
1968 | /* Use new "search" start rate */ | 1967 | /* Use new "search" start rate */ |
1969 | index = iwl4965_hwrate_to_plcp_idx( | 1968 | index = iwl_hwrate_to_plcp_idx(tbl->current_rate); |
1970 | tbl->current_rate); | ||
1971 | 1969 | ||
1972 | IWL_DEBUG_RATE("Switch current mcs: %X index: %d\n", | 1970 | IWL_DEBUG_RATE("Switch current mcs: %X index: %d\n", |
1973 | tbl->current_rate, index); | 1971 | tbl->current_rate, index); |