diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-rs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index 754fef5b592f..98f2c843b99e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c | |||
@@ -1153,7 +1153,8 @@ static int rs_switch_to_mimo2(struct iwl_priv *priv, | |||
1153 | !sta->ht_info.ht_supported) | 1153 | !sta->ht_info.ht_supported) |
1154 | return -1; | 1154 | return -1; |
1155 | 1155 | ||
1156 | if (priv->current_ht_config.tx_mimo_ps_mode == IWL_MIMO_PS_STATIC) | 1156 | if (((sta->ht_info.cap & IEEE80211_HT_CAP_MIMO_PS) >> 2) |
1157 | == IWL_MIMO_PS_STATIC) | ||
1157 | return -1; | 1158 | return -1; |
1158 | 1159 | ||
1159 | /* Need both Tx chains/antennas to support MIMO */ | 1160 | /* Need both Tx chains/antennas to support MIMO */ |
@@ -1668,6 +1669,7 @@ static void rs_rate_scale_perform(struct iwl_priv *priv, | |||
1668 | return; | 1669 | return; |
1669 | 1670 | ||
1670 | lq_sta = (struct iwl_lq_sta *)sta->rate_ctrl_priv; | 1671 | lq_sta = (struct iwl_lq_sta *)sta->rate_ctrl_priv; |
1672 | lq_sta->supp_rates = sta->supp_rates[lq_sta->band]; | ||
1671 | 1673 | ||
1672 | tid = rs_tl_add_packet(lq_sta, hdr); | 1674 | tid = rs_tl_add_packet(lq_sta, hdr); |
1673 | 1675 | ||
@@ -2216,8 +2218,7 @@ static void rs_rate_init(void *priv_rate, void *priv_sta, | |||
2216 | sta->txrate_idx = i; | 2218 | sta->txrate_idx = i; |
2217 | 2219 | ||
2218 | sta->last_txrate_idx = sta->txrate_idx; | 2220 | sta->last_txrate_idx = sta->txrate_idx; |
2219 | /* WTF is with this bogus comment? A doesn't have cck rates */ | 2221 | /* For MODE_IEEE80211A, skip over cck rates in global rate table */ |
2220 | /* For MODE_IEEE80211A, cck rates are at end of rate table */ | ||
2221 | if (local->hw.conf.channel->band == IEEE80211_BAND_5GHZ) | 2222 | if (local->hw.conf.channel->band == IEEE80211_BAND_5GHZ) |
2222 | sta->last_txrate_idx += IWL_FIRST_OFDM_RATE; | 2223 | sta->last_txrate_idx += IWL_FIRST_OFDM_RATE; |
2223 | 2224 | ||