diff options
author | Liad Kaufman <liad.kaufman@intel.com> | 2016-02-28 09:15:07 -0500 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2016-03-30 09:24:47 -0400 |
commit | f02669be45b44ffbb70d2f721f47544629f7a9a4 (patch) | |
tree | 93cb378f7192616e6432c207c55d4269b038753b /drivers/net/wireless/intel/iwlwifi/mvm/utils.c | |
parent | d5216a28936add0a9c34bdc7d4f03c2e0a2261c2 (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.
Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/utils.c')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c index 76866b9e5686..486c98541afc 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c | |||
@@ -608,6 +608,8 @@ void iwl_mvm_enable_txq(struct iwl_mvm *mvm, int queue, int mac80211_queue, | |||
608 | mvm->queue_info[queue].hw_queue_refcount++; | 608 | mvm->queue_info[queue].hw_queue_refcount++; |
609 | if (mvm->queue_info[queue].hw_queue_refcount > 1) | 609 | if (mvm->queue_info[queue].hw_queue_refcount > 1) |
610 | enable_queue = false; | 610 | enable_queue = false; |
611 | else | ||
612 | mvm->queue_info[queue].ra_sta_id = cfg->sta_id; | ||
611 | mvm->queue_info[queue].tid_bitmap |= BIT(cfg->tid); | 613 | mvm->queue_info[queue].tid_bitmap |= BIT(cfg->tid); |
612 | 614 | ||
613 | IWL_DEBUG_TX_QUEUES(mvm, | 615 | IWL_DEBUG_TX_QUEUES(mvm, |
@@ -693,6 +695,8 @@ void iwl_mvm_disable_txq(struct iwl_mvm *mvm, int queue, int mac80211_queue, | |||
693 | return; | 695 | return; |
694 | } | 696 | } |
695 | 697 | ||
698 | cmd.sta_id = mvm->queue_info[queue].ra_sta_id; | ||
699 | |||
696 | /* Make sure queue info is correct even though we overwrite it */ | 700 | /* Make sure queue info is correct even though we overwrite it */ |
697 | WARN(mvm->queue_info[queue].hw_queue_refcount || | 701 | WARN(mvm->queue_info[queue].hw_queue_refcount || |
698 | mvm->queue_info[queue].tid_bitmap || | 702 | mvm->queue_info[queue].tid_bitmap || |