diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-sta.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-sta.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.c b/drivers/net/wireless/iwlwifi/iwl-sta.c index e02c4717c93c..a28a8decc79c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-sta.c +++ b/drivers/net/wireless/iwlwifi/iwl-sta.c | |||
@@ -845,7 +845,7 @@ static void iwl_sta_init_lq(struct iwl_priv *priv, const u8 *addr, int is_ap) | |||
845 | struct iwl_link_quality_cmd link_cmd = { | 845 | struct iwl_link_quality_cmd link_cmd = { |
846 | .reserved1 = 0, | 846 | .reserved1 = 0, |
847 | }; | 847 | }; |
848 | u16 rate_flags; | 848 | u32 rate_flags; |
849 | 849 | ||
850 | /* Set up the rate scaling to start at selected rate, fall back | 850 | /* Set up the rate scaling to start at selected rate, fall back |
851 | * all the way down to 1M in IEEE order, and then spin on 1M */ | 851 | * all the way down to 1M in IEEE order, and then spin on 1M */ |
@@ -861,15 +861,16 @@ static void iwl_sta_init_lq(struct iwl_priv *priv, const u8 *addr, int is_ap) | |||
861 | if (r >= IWL_FIRST_CCK_RATE && r <= IWL_LAST_CCK_RATE) | 861 | if (r >= IWL_FIRST_CCK_RATE && r <= IWL_LAST_CCK_RATE) |
862 | rate_flags |= RATE_MCS_CCK_MSK; | 862 | rate_flags |= RATE_MCS_CCK_MSK; |
863 | 863 | ||
864 | /* Use Tx antenna B only */ | 864 | rate_flags |= first_antenna(priv->hw_params.valid_tx_ant) << |
865 | rate_flags |= RATE_MCS_ANT_B_MSK; /*FIXME:RS*/ | 865 | RATE_MCS_ANT_POS; |
866 | 866 | ||
867 | link_cmd.rs_table[i].rate_n_flags = | 867 | link_cmd.rs_table[i].rate_n_flags = |
868 | iwl_hw_set_rate_n_flags(iwl_rates[r].plcp, rate_flags); | 868 | iwl_hw_set_rate_n_flags(iwl_rates[r].plcp, rate_flags); |
869 | r = iwl4965_get_prev_ieee_rate(r); | 869 | r = iwl4965_get_prev_ieee_rate(r); |
870 | } | 870 | } |
871 | 871 | ||
872 | link_cmd.general_params.single_stream_ant_msk = 2; | 872 | link_cmd.general_params.single_stream_ant_msk = |
873 | first_antenna(priv->hw_params.valid_tx_ant); | ||
873 | link_cmd.general_params.dual_stream_ant_msk = 3; | 874 | link_cmd.general_params.dual_stream_ant_msk = 3; |
874 | link_cmd.agg_params.agg_dis_start_th = 3; | 875 | link_cmd.agg_params.agg_dis_start_th = 3; |
875 | link_cmd.agg_params.agg_time_limit = cpu_to_le16(4000); | 876 | link_cmd.agg_params.agg_time_limit = cpu_to_le16(4000); |