diff options
author | Liad Kaufman <liad.kaufman@intel.com> | 2015-08-31 06:41:26 -0400 |
---|---|---|
committer | Luca Coelho <luciano.coelho@intel.com> | 2016-07-05 17:48:26 -0400 |
commit | 93f436e2c7feacb04a21bbfb984a7afd87fb4623 (patch) | |
tree | 1b242b4deb40835704adcc0419ce419f43ffa287 | |
parent | 42db09c1b0378e118b804d948a5bab6194721506 (diff) |
iwlwifi: mvm: set sta_id in SCD_QUEUE_CONFIG cmd
Set the correct sta_id in the SCD_QUEUE_CONFIG command sent
to the FW when enabling/disabling queues. This is needed in
DQA-mode to allow the FW to associate between queue and STA.
In case the queue isn't connected to a specific station but
rather is a static "generic" queue - the sta_id should be
set to 0x10 (max supported STA is 0x0f).
Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 7 | ||||
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/utils.c | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c index 14c06cbe861f..9d4ebc9439a0 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c | |||
@@ -635,9 +635,16 @@ static int iwl_mvm_sta_alloc_queue(struct iwl_mvm *mvm, | |||
635 | .scd_queue = queue, | 635 | .scd_queue = queue, |
636 | .enable = 0, | 636 | .enable = 0, |
637 | }; | 637 | }; |
638 | u8 ac; | ||
638 | 639 | ||
639 | disable_agg_tids = iwl_mvm_remove_sta_queue_marking(mvm, queue); | 640 | disable_agg_tids = iwl_mvm_remove_sta_queue_marking(mvm, queue); |
640 | 641 | ||
642 | spin_lock_bh(&mvm->queue_info_lock); | ||
643 | ac = mvm->queue_info[queue].mac80211_ac; | ||
644 | cmd.sta_id = mvm->queue_info[queue].ra_sta_id; | ||
645 | cmd.tx_fifo = iwl_mvm_ac_to_tx_fifo[ac]; | ||
646 | spin_unlock_bh(&mvm->queue_info_lock); | ||
647 | |||
641 | /* Disable the queue */ | 648 | /* Disable the queue */ |
642 | iwl_mvm_invalidate_sta_queue(mvm, queue, disable_agg_tids, | 649 | iwl_mvm_invalidate_sta_queue(mvm, queue, disable_agg_tids, |
643 | true); | 650 | true); |
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c index 2fc51e7c03b5..68f4e7fdfc11 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c | |||
@@ -691,6 +691,10 @@ void iwl_mvm_enable_txq(struct iwl_mvm *mvm, int queue, int mac80211_queue, | |||
691 | .tid = cfg->tid, | 691 | .tid = cfg->tid, |
692 | }; | 692 | }; |
693 | 693 | ||
694 | /* Set sta_id in the command, if it exists */ | ||
695 | if (iwl_mvm_is_dqa_supported(mvm)) | ||
696 | cmd.sta_id = cfg->sta_id; | ||
697 | |||
694 | iwl_trans_txq_enable_cfg(mvm->trans, queue, ssn, NULL, | 698 | iwl_trans_txq_enable_cfg(mvm->trans, queue, ssn, NULL, |
695 | wdg_timeout); | 699 | wdg_timeout); |
696 | WARN(iwl_mvm_send_cmd_pdu(mvm, SCD_QUEUE_CFG, 0, sizeof(cmd), | 700 | WARN(iwl_mvm_send_cmd_pdu(mvm, SCD_QUEUE_CFG, 0, sizeof(cmd), |