diff options
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/dvm/rs.c')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/dvm/rs.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/rs.c b/drivers/net/wireless/intel/iwlwifi/dvm/rs.c index ee7505537c96..b95c2d76db33 100644 --- a/drivers/net/wireless/intel/iwlwifi/dvm/rs.c +++ b/drivers/net/wireless/intel/iwlwifi/dvm/rs.c | |||
@@ -599,7 +599,7 @@ static u32 rate_n_flags_from_tbl(struct iwl_priv *priv, | |||
599 | * fill "search" or "active" tx mode table. | 599 | * fill "search" or "active" tx mode table. |
600 | */ | 600 | */ |
601 | static int rs_get_tbl_info_from_mcs(const u32 rate_n_flags, | 601 | static int rs_get_tbl_info_from_mcs(const u32 rate_n_flags, |
602 | enum ieee80211_band band, | 602 | enum nl80211_band band, |
603 | struct iwl_scale_tbl_info *tbl, | 603 | struct iwl_scale_tbl_info *tbl, |
604 | int *rate_idx) | 604 | int *rate_idx) |
605 | { | 605 | { |
@@ -624,7 +624,7 @@ static int rs_get_tbl_info_from_mcs(const u32 rate_n_flags, | |||
624 | /* legacy rate format */ | 624 | /* legacy rate format */ |
625 | if (!(rate_n_flags & RATE_MCS_HT_MSK)) { | 625 | if (!(rate_n_flags & RATE_MCS_HT_MSK)) { |
626 | if (num_of_ant == 1) { | 626 | if (num_of_ant == 1) { |
627 | if (band == IEEE80211_BAND_5GHZ) | 627 | if (band == NL80211_BAND_5GHZ) |
628 | tbl->lq_type = LQ_A; | 628 | tbl->lq_type = LQ_A; |
629 | else | 629 | else |
630 | tbl->lq_type = LQ_G; | 630 | tbl->lq_type = LQ_G; |
@@ -802,7 +802,7 @@ static u32 rs_get_lower_rate(struct iwl_lq_sta *lq_sta, | |||
802 | if (!is_legacy(tbl->lq_type) && (!ht_possible || !scale_index)) { | 802 | if (!is_legacy(tbl->lq_type) && (!ht_possible || !scale_index)) { |
803 | switch_to_legacy = 1; | 803 | switch_to_legacy = 1; |
804 | scale_index = rs_ht_to_legacy[scale_index]; | 804 | scale_index = rs_ht_to_legacy[scale_index]; |
805 | if (lq_sta->band == IEEE80211_BAND_5GHZ) | 805 | if (lq_sta->band == NL80211_BAND_5GHZ) |
806 | tbl->lq_type = LQ_A; | 806 | tbl->lq_type = LQ_A; |
807 | else | 807 | else |
808 | tbl->lq_type = LQ_G; | 808 | tbl->lq_type = LQ_G; |
@@ -821,7 +821,7 @@ static u32 rs_get_lower_rate(struct iwl_lq_sta *lq_sta, | |||
821 | /* Mask with station rate restriction */ | 821 | /* Mask with station rate restriction */ |
822 | if (is_legacy(tbl->lq_type)) { | 822 | if (is_legacy(tbl->lq_type)) { |
823 | /* supp_rates has no CCK bits in A mode */ | 823 | /* supp_rates has no CCK bits in A mode */ |
824 | if (lq_sta->band == IEEE80211_BAND_5GHZ) | 824 | if (lq_sta->band == NL80211_BAND_5GHZ) |
825 | rate_mask = (u16)(rate_mask & | 825 | rate_mask = (u16)(rate_mask & |
826 | (lq_sta->supp_rates << IWL_FIRST_OFDM_RATE)); | 826 | (lq_sta->supp_rates << IWL_FIRST_OFDM_RATE)); |
827 | else | 827 | else |
@@ -939,7 +939,7 @@ static void rs_tx_status(void *priv_r, struct ieee80211_supported_band *sband, | |||
939 | table = &lq_sta->lq; | 939 | table = &lq_sta->lq; |
940 | tx_rate = le32_to_cpu(table->rs_table[0].rate_n_flags); | 940 | tx_rate = le32_to_cpu(table->rs_table[0].rate_n_flags); |
941 | rs_get_tbl_info_from_mcs(tx_rate, priv->band, &tbl_type, &rs_index); | 941 | rs_get_tbl_info_from_mcs(tx_rate, priv->band, &tbl_type, &rs_index); |
942 | if (priv->band == IEEE80211_BAND_5GHZ) | 942 | if (priv->band == NL80211_BAND_5GHZ) |
943 | rs_index -= IWL_FIRST_OFDM_RATE; | 943 | rs_index -= IWL_FIRST_OFDM_RATE; |
944 | mac_flags = info->status.rates[0].flags; | 944 | mac_flags = info->status.rates[0].flags; |
945 | mac_index = info->status.rates[0].idx; | 945 | mac_index = info->status.rates[0].idx; |
@@ -952,7 +952,7 @@ static void rs_tx_status(void *priv_r, struct ieee80211_supported_band *sband, | |||
952 | * mac80211 HT index is always zero-indexed; we need to move | 952 | * mac80211 HT index is always zero-indexed; we need to move |
953 | * HT OFDM rates after CCK rates in 2.4 GHz band | 953 | * HT OFDM rates after CCK rates in 2.4 GHz band |
954 | */ | 954 | */ |
955 | if (priv->band == IEEE80211_BAND_2GHZ) | 955 | if (priv->band == NL80211_BAND_2GHZ) |
956 | mac_index += IWL_FIRST_OFDM_RATE; | 956 | mac_index += IWL_FIRST_OFDM_RATE; |
957 | } | 957 | } |
958 | /* Here we actually compare this rate to the latest LQ command */ | 958 | /* Here we actually compare this rate to the latest LQ command */ |
@@ -2284,7 +2284,7 @@ static void rs_rate_scale_perform(struct iwl_priv *priv, | |||
2284 | 2284 | ||
2285 | /* mask with station rate restriction */ | 2285 | /* mask with station rate restriction */ |
2286 | if (is_legacy(tbl->lq_type)) { | 2286 | if (is_legacy(tbl->lq_type)) { |
2287 | if (lq_sta->band == IEEE80211_BAND_5GHZ) | 2287 | if (lq_sta->band == NL80211_BAND_5GHZ) |
2288 | /* supp_rates has no CCK bits in A mode */ | 2288 | /* supp_rates has no CCK bits in A mode */ |
2289 | rate_scale_index_msk = (u16) (rate_mask & | 2289 | rate_scale_index_msk = (u16) (rate_mask & |
2290 | (lq_sta->supp_rates << IWL_FIRST_OFDM_RATE)); | 2290 | (lq_sta->supp_rates << IWL_FIRST_OFDM_RATE)); |
@@ -2721,7 +2721,7 @@ static void rs_get_rate(void *priv_r, struct ieee80211_sta *sta, void *priv_sta, | |||
2721 | /* Get max rate if user set max rate */ | 2721 | /* Get max rate if user set max rate */ |
2722 | if (lq_sta) { | 2722 | if (lq_sta) { |
2723 | lq_sta->max_rate_idx = txrc->max_rate_idx; | 2723 | lq_sta->max_rate_idx = txrc->max_rate_idx; |
2724 | if ((sband->band == IEEE80211_BAND_5GHZ) && | 2724 | if ((sband->band == NL80211_BAND_5GHZ) && |
2725 | (lq_sta->max_rate_idx != -1)) | 2725 | (lq_sta->max_rate_idx != -1)) |
2726 | lq_sta->max_rate_idx += IWL_FIRST_OFDM_RATE; | 2726 | lq_sta->max_rate_idx += IWL_FIRST_OFDM_RATE; |
2727 | if ((lq_sta->max_rate_idx < 0) || | 2727 | if ((lq_sta->max_rate_idx < 0) || |
@@ -2763,11 +2763,11 @@ static void rs_get_rate(void *priv_r, struct ieee80211_sta *sta, void *priv_sta, | |||
2763 | } else { | 2763 | } else { |
2764 | /* Check for invalid rates */ | 2764 | /* Check for invalid rates */ |
2765 | if ((rate_idx < 0) || (rate_idx >= IWL_RATE_COUNT_LEGACY) || | 2765 | if ((rate_idx < 0) || (rate_idx >= IWL_RATE_COUNT_LEGACY) || |
2766 | ((sband->band == IEEE80211_BAND_5GHZ) && | 2766 | ((sband->band == NL80211_BAND_5GHZ) && |
2767 | (rate_idx < IWL_FIRST_OFDM_RATE))) | 2767 | (rate_idx < IWL_FIRST_OFDM_RATE))) |
2768 | rate_idx = rate_lowest_index(sband, sta); | 2768 | rate_idx = rate_lowest_index(sband, sta); |
2769 | /* On valid 5 GHz rate, adjust index */ | 2769 | /* On valid 5 GHz rate, adjust index */ |
2770 | else if (sband->band == IEEE80211_BAND_5GHZ) | 2770 | else if (sband->band == NL80211_BAND_5GHZ) |
2771 | rate_idx -= IWL_FIRST_OFDM_RATE; | 2771 | rate_idx -= IWL_FIRST_OFDM_RATE; |
2772 | info->control.rates[0].flags = 0; | 2772 | info->control.rates[0].flags = 0; |
2773 | } | 2773 | } |
@@ -2880,7 +2880,7 @@ void iwl_rs_rate_init(struct iwl_priv *priv, struct ieee80211_sta *sta, u8 sta_i | |||
2880 | 2880 | ||
2881 | /* Set last_txrate_idx to lowest rate */ | 2881 | /* Set last_txrate_idx to lowest rate */ |
2882 | lq_sta->last_txrate_idx = rate_lowest_index(sband, sta); | 2882 | lq_sta->last_txrate_idx = rate_lowest_index(sband, sta); |
2883 | if (sband->band == IEEE80211_BAND_5GHZ) | 2883 | if (sband->band == NL80211_BAND_5GHZ) |
2884 | lq_sta->last_txrate_idx += IWL_FIRST_OFDM_RATE; | 2884 | lq_sta->last_txrate_idx += IWL_FIRST_OFDM_RATE; |
2885 | lq_sta->is_agg = 0; | 2885 | lq_sta->is_agg = 0; |
2886 | #ifdef CONFIG_MAC80211_DEBUGFS | 2886 | #ifdef CONFIG_MAC80211_DEBUGFS |