aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-rs.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-rs.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
index b497d40dc396..cd1bff590491 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
@@ -1134,10 +1134,10 @@ static int rs_switch_to_mimo2(struct iwl_priv *priv,
1134 s8 is_green = lq_sta->is_green; 1134 s8 is_green = lq_sta->is_green;
1135 1135
1136 if (!(conf->flags & IEEE80211_CONF_SUPPORT_HT_MODE) || 1136 if (!(conf->flags & IEEE80211_CONF_SUPPORT_HT_MODE) ||
1137 !sta->ht_info.ht_supported) 1137 !sta->ht_cap.ht_supported)
1138 return -1; 1138 return -1;
1139 1139
1140 if (((sta->ht_info.cap & IEEE80211_HT_CAP_SM_PS) >> 2) 1140 if (((sta->ht_cap.cap & IEEE80211_HT_CAP_SM_PS) >> 2)
1141 == WLAN_HT_CAP_SM_PS_STATIC) 1141 == WLAN_HT_CAP_SM_PS_STATIC)
1142 return -1; 1142 return -1;
1143 1143
@@ -1202,7 +1202,7 @@ static int rs_switch_to_siso(struct iwl_priv *priv,
1202 s32 rate; 1202 s32 rate;
1203 1203
1204 if (!(conf->flags & IEEE80211_CONF_SUPPORT_HT_MODE) || 1204 if (!(conf->flags & IEEE80211_CONF_SUPPORT_HT_MODE) ||
1205 !sta->ht_info.ht_supported) 1205 !sta->ht_cap.ht_supported)
1206 return -1; 1206 return -1;
1207 1207
1208 IWL_DEBUG_RATE("LQ: try to switch to SISO\n"); 1208 IWL_DEBUG_RATE("LQ: try to switch to SISO\n");
@@ -2238,19 +2238,19 @@ static void rs_rate_init(void *priv_r, struct ieee80211_supported_band *sband,
2238 * active_siso_rate mask includes 9 MBits (bit 5), and CCK (bits 0-3), 2238 * active_siso_rate mask includes 9 MBits (bit 5), and CCK (bits 0-3),
2239 * supp_rates[] does not; shift to convert format, force 9 MBits off. 2239 * supp_rates[] does not; shift to convert format, force 9 MBits off.
2240 */ 2240 */
2241 lq_sta->active_siso_rate = conf->ht_conf.supp_mcs_set[0] << 1; 2241 lq_sta->active_siso_rate = conf->ht_cap.mcs.rx_mask[0] << 1;
2242 lq_sta->active_siso_rate |= conf->ht_conf.supp_mcs_set[0] & 0x1; 2242 lq_sta->active_siso_rate |= conf->ht_cap.mcs.rx_mask[0] & 0x1;
2243 lq_sta->active_siso_rate &= ~((u16)0x2); 2243 lq_sta->active_siso_rate &= ~((u16)0x2);
2244 lq_sta->active_siso_rate <<= IWL_FIRST_OFDM_RATE; 2244 lq_sta->active_siso_rate <<= IWL_FIRST_OFDM_RATE;
2245 2245
2246 /* Same here */ 2246 /* Same here */
2247 lq_sta->active_mimo2_rate = conf->ht_conf.supp_mcs_set[1] << 1; 2247 lq_sta->active_mimo2_rate = conf->ht_cap.mcs.rx_mask[1] << 1;
2248 lq_sta->active_mimo2_rate |= conf->ht_conf.supp_mcs_set[1] & 0x1; 2248 lq_sta->active_mimo2_rate |= conf->ht_cap.mcs.rx_mask[1] & 0x1;
2249 lq_sta->active_mimo2_rate &= ~((u16)0x2); 2249 lq_sta->active_mimo2_rate &= ~((u16)0x2);
2250 lq_sta->active_mimo2_rate <<= IWL_FIRST_OFDM_RATE; 2250 lq_sta->active_mimo2_rate <<= IWL_FIRST_OFDM_RATE;
2251 2251
2252 lq_sta->active_mimo3_rate = conf->ht_conf.supp_mcs_set[2] << 1; 2252 lq_sta->active_mimo3_rate = conf->ht_cap.mcs.rx_mask[2] << 1;
2253 lq_sta->active_mimo3_rate |= conf->ht_conf.supp_mcs_set[2] & 0x1; 2253 lq_sta->active_mimo3_rate |= conf->ht_cap.mcs.rx_mask[2] & 0x1;
2254 lq_sta->active_mimo3_rate &= ~((u16)0x2); 2254 lq_sta->active_mimo3_rate &= ~((u16)0x2);
2255 lq_sta->active_mimo3_rate <<= IWL_FIRST_OFDM_RATE; 2255 lq_sta->active_mimo3_rate <<= IWL_FIRST_OFDM_RATE;
2256 2256