diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965-rs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-rs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c index 46d85fd07faa..cf7b569a2229 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c | |||
@@ -570,7 +570,7 @@ static int rs_get_tbl_info_from_mcs(const struct iwl4965_rate *mcs_rate, | |||
570 | int index; | 570 | int index; |
571 | u32 ant_msk; | 571 | u32 ant_msk; |
572 | 572 | ||
573 | index = iwl4965_rate_index_from_plcp(mcs_rate->rate_n_flags); | 573 | index = iwl4965_hwrate_to_plcp_idx(mcs_rate->rate_n_flags); |
574 | 574 | ||
575 | if (index == IWL_RATE_INVALID) { | 575 | if (index == IWL_RATE_INVALID) { |
576 | *rate_idx = -1; | 576 | *rate_idx = -1; |
@@ -1921,7 +1921,7 @@ static void rs_rate_scale_perform(struct iwl4965_priv *priv, | |||
1921 | tbl = &(lq_sta->lq_info[active_tbl]); | 1921 | tbl = &(lq_sta->lq_info[active_tbl]); |
1922 | 1922 | ||
1923 | /* Revert to "active" rate and throughput info */ | 1923 | /* Revert to "active" rate and throughput info */ |
1924 | index = iwl4965_rate_index_from_plcp( | 1924 | index = iwl4965_hwrate_to_plcp_idx( |
1925 | tbl->current_rate.rate_n_flags); | 1925 | tbl->current_rate.rate_n_flags); |
1926 | current_tpt = lq_sta->last_tpt; | 1926 | current_tpt = lq_sta->last_tpt; |
1927 | 1927 | ||
@@ -2077,7 +2077,7 @@ static void rs_rate_scale_perform(struct iwl4965_priv *priv, | |||
2077 | rs_rate_scale_clear_window(&(tbl->win[i])); | 2077 | rs_rate_scale_clear_window(&(tbl->win[i])); |
2078 | 2078 | ||
2079 | /* Use new "search" start rate */ | 2079 | /* Use new "search" start rate */ |
2080 | index = iwl4965_rate_index_from_plcp( | 2080 | index = iwl4965_hwrate_to_plcp_idx( |
2081 | tbl->current_rate.rate_n_flags); | 2081 | tbl->current_rate.rate_n_flags); |
2082 | 2082 | ||
2083 | IWL_DEBUG_HT("Switch current mcs: %X index: %d\n", | 2083 | IWL_DEBUG_HT("Switch current mcs: %X index: %d\n", |