diff options
author | Liad Kaufman <liad.kaufman@intel.com> | 2015-09-01 09:36:25 -0400 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2016-07-05 17:48:55 -0400 |
commit | 28d0793ed212e4714cea79aeb77e62de99b139c1 (patch) | |
tree | 3089d9852759a319cdc0956c01f7ecd47372e691 /drivers/net/wireless/intel/iwlwifi/mvm/ops.c | |
parent | 93f436e2c7feacb04a21bbfb984a7afd87fb4623 (diff) |
iwlwifi: mvm: update aux queue in dqa mode
In DQA mode the AUX queue is mapped elsewhere than in non-
DQA mode. Update the code to reflect this.
Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/ops.c')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c index 063ebbeb8481..a08db009d32a 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c | |||
@@ -577,18 +577,21 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const struct iwl_cfg *cfg, | |||
577 | 577 | ||
578 | mvm->restart_fw = iwlwifi_mod_params.restart_fw ? -1 : 0; | 578 | mvm->restart_fw = iwlwifi_mod_params.restart_fw ? -1 : 0; |
579 | 579 | ||
580 | mvm->aux_queue = 15; | ||
581 | if (!iwl_mvm_is_dqa_supported(mvm)) { | 580 | if (!iwl_mvm_is_dqa_supported(mvm)) { |
582 | mvm->first_agg_queue = 16; | ||
583 | mvm->last_agg_queue = mvm->cfg->base_params->num_of_queues - 1; | 581 | mvm->last_agg_queue = mvm->cfg->base_params->num_of_queues - 1; |
582 | |||
583 | if (mvm->cfg->base_params->num_of_queues == 16) { | ||
584 | mvm->aux_queue = 11; | ||
585 | mvm->first_agg_queue = 12; | ||
586 | } else { | ||
587 | mvm->aux_queue = 15; | ||
588 | mvm->first_agg_queue = 16; | ||
589 | } | ||
584 | } else { | 590 | } else { |
591 | mvm->aux_queue = IWL_MVM_DQA_AUX_QUEUE; | ||
585 | mvm->first_agg_queue = IWL_MVM_DQA_MIN_DATA_QUEUE; | 592 | mvm->first_agg_queue = IWL_MVM_DQA_MIN_DATA_QUEUE; |
586 | mvm->last_agg_queue = IWL_MVM_DQA_MAX_DATA_QUEUE; | 593 | mvm->last_agg_queue = IWL_MVM_DQA_MAX_DATA_QUEUE; |
587 | } | 594 | } |
588 | if (mvm->cfg->base_params->num_of_queues == 16) { | ||
589 | mvm->aux_queue = 11; | ||
590 | mvm->first_agg_queue = 12; | ||
591 | } | ||
592 | mvm->sf_state = SF_UNINIT; | 595 | mvm->sf_state = SF_UNINIT; |
593 | mvm->cur_ucode = IWL_UCODE_INIT; | 596 | mvm->cur_ucode = IWL_UCODE_INIT; |
594 | mvm->drop_bcn_ap_mode = true; | 597 | mvm->drop_bcn_ap_mode = true; |