diff options
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965-rs.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c index 7f9178bf602e..a928741e5573 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965-rs.c | |||
@@ -2245,25 +2245,19 @@ static void rs_rate_init(void *priv_rate, void *priv_sta, | |||
2245 | * active_siso_rate mask includes 9 MBits (bit 5), and CCK (bits 0-3), | 2245 | * active_siso_rate mask includes 9 MBits (bit 5), and CCK (bits 0-3), |
2246 | * supp_rates[] does not; shift to convert format, force 9 MBits off. | 2246 | * supp_rates[] does not; shift to convert format, force 9 MBits off. |
2247 | */ | 2247 | */ |
2248 | lq_sta->active_siso_rate = | 2248 | lq_sta->active_siso_rate = conf->ht_conf.supp_mcs_set[0] << 1; |
2249 | priv->current_ht_config.supp_mcs_set[0] << 1; | 2249 | lq_sta->active_siso_rate |= conf->ht_conf.supp_mcs_set[0] & 0x1; |
2250 | lq_sta->active_siso_rate |= | ||
2251 | priv->current_ht_config.supp_mcs_set[0] & 0x1; | ||
2252 | lq_sta->active_siso_rate &= ~((u16)0x2); | 2250 | lq_sta->active_siso_rate &= ~((u16)0x2); |
2253 | lq_sta->active_siso_rate <<= IWL_FIRST_OFDM_RATE; | 2251 | lq_sta->active_siso_rate <<= IWL_FIRST_OFDM_RATE; |
2254 | 2252 | ||
2255 | /* Same here */ | 2253 | /* Same here */ |
2256 | lq_sta->active_mimo2_rate = | 2254 | lq_sta->active_mimo2_rate = conf->ht_conf.supp_mcs_set[1] << 1; |
2257 | priv->current_ht_config.supp_mcs_set[1] << 1; | 2255 | lq_sta->active_mimo2_rate |= conf->ht_conf.supp_mcs_set[1] & 0x1; |
2258 | lq_sta->active_mimo2_rate |= | ||
2259 | priv->current_ht_config.supp_mcs_set[1] & 0x1; | ||
2260 | lq_sta->active_mimo2_rate &= ~((u16)0x2); | 2256 | lq_sta->active_mimo2_rate &= ~((u16)0x2); |
2261 | lq_sta->active_mimo2_rate <<= IWL_FIRST_OFDM_RATE; | 2257 | lq_sta->active_mimo2_rate <<= IWL_FIRST_OFDM_RATE; |
2262 | 2258 | ||
2263 | lq_sta->active_mimo3_rate = | 2259 | lq_sta->active_mimo3_rate = conf->ht_conf.supp_mcs_set[2] << 1; |
2264 | priv->current_ht_config.supp_mcs_set[2] << 1; | 2260 | lq_sta->active_mimo3_rate |= conf->ht_conf.supp_mcs_set[2] & 0x1; |
2265 | lq_sta->active_mimo3_rate |= | ||
2266 | priv->current_ht_config.supp_mcs_set[2] & 0x1; | ||
2267 | lq_sta->active_mimo3_rate &= ~((u16)0x2); | 2261 | lq_sta->active_mimo3_rate &= ~((u16)0x2); |
2268 | lq_sta->active_mimo3_rate <<= IWL_FIRST_OFDM_RATE; | 2262 | lq_sta->active_mimo3_rate <<= IWL_FIRST_OFDM_RATE; |
2269 | 2263 | ||