aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/rs.c
diff options
context:
space:
mode:
authorErel Geron <erelx.geron@intel.com>2018-05-28 10:18:47 -0400
committerLuca Coelho <luciano.coelho@intel.com>2018-09-28 01:57:27 -0400
commitd5367de2d803658702dab1fc70e3428b26651189 (patch)
treedd19175670baf30038339da0a3d0a85544676d63 /drivers/net/wireless/intel/iwlwifi/mvm/rs.c
parent337bfc9881a277a973aa6a58418d281557ab6cdd (diff)
iwlwifi: mvm: TLC support for Coex Schema 2
The new coex schema requires setting the non-shared antenna for the single_stream_ant_msk field in the TLC command. Signed-off-by: Erel Geron <erelx.geron@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/rs.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/rs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/rs.c b/drivers/net/wireless/intel/iwlwifi/mvm/rs.c
index c3282f1d77ba..2c75f51a04e4 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/rs.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/rs.c
@@ -3213,7 +3213,7 @@ static void rs_drv_rate_init(struct iwl_mvm *mvm, struct ieee80211_sta *sta,
3213 3213
3214 /* These values will be overridden later */ 3214 /* These values will be overridden later */
3215 lq_sta->lq.single_stream_ant_msk = 3215 lq_sta->lq.single_stream_ant_msk =
3216 first_antenna(iwl_mvm_get_valid_tx_ant(mvm)); 3216 iwl_mvm_bt_coex_get_single_ant_msk(mvm, iwl_mvm_get_valid_tx_ant(mvm));
3217 lq_sta->lq.dual_stream_ant_msk = ANT_AB; 3217 lq_sta->lq.dual_stream_ant_msk = ANT_AB;
3218 3218
3219 /* as default allow aggregation for all tids */ 3219 /* as default allow aggregation for all tids */
@@ -3576,7 +3576,8 @@ static void rs_fill_lq_cmd(struct iwl_mvm *mvm,
3576 mvmsta = iwl_mvm_sta_from_mac80211(sta); 3576 mvmsta = iwl_mvm_sta_from_mac80211(sta);
3577 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); 3577 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif);
3578 3578
3579 if (num_of_ant(initial_rate->ant) == 1) 3579 if (!fw_has_capa(&mvm->fw->ucode_capa, IWL_UCODE_TLV_CAPA_COEX_SCHEMA_2) &&
3580 num_of_ant(initial_rate->ant) == 1)
3580 lq_cmd->single_stream_ant_msk = initial_rate->ant; 3581 lq_cmd->single_stream_ant_msk = initial_rate->ant;
3581 3582
3582 lq_cmd->agg_frame_cnt_limit = mvmsta->max_agg_bufsize; 3583 lq_cmd->agg_frame_cnt_limit = mvmsta->max_agg_bufsize;