Skip to content

Commit f02669b

Browse files
lkaufman-heegrumbach
authored andcommitted
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 <[email protected]> Signed-off-by: Emmanuel Grumbach <[email protected]>
1 parent d5216a2 commit f02669b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

drivers/net/wireless/intel/iwlwifi/mvm/mvm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,7 @@ struct iwl_mvm {
665665
/* Map to HW queue */
666666
u32 hw_queue_to_mac80211;
667667
u8 hw_queue_refcount;
668+
u8 ra_sta_id; /* The RA this queue is mapped to, if exists */
668669
/*
669670
* This is to mark that queue is reserved for a STA but not yet
670671
* allocated. This is needed to make sure we have at least one

drivers/net/wireless/intel/iwlwifi/mvm/utils.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,8 @@ void iwl_mvm_enable_txq(struct iwl_mvm *mvm, int queue, int mac80211_queue,
608608
mvm->queue_info[queue].hw_queue_refcount++;
609609
if (mvm->queue_info[queue].hw_queue_refcount > 1)
610610
enable_queue = false;
611+
else
612+
mvm->queue_info[queue].ra_sta_id = cfg->sta_id;
611613
mvm->queue_info[queue].tid_bitmap |= BIT(cfg->tid);
612614

613615
IWL_DEBUG_TX_QUEUES(mvm,
@@ -693,6 +695,8 @@ void iwl_mvm_disable_txq(struct iwl_mvm *mvm, int queue, int mac80211_queue,
693695
return;
694696
}
695697

698+
cmd.sta_id = mvm->queue_info[queue].ra_sta_id;
699+
696700
/* Make sure queue info is correct even though we overwrite it */
697701
WARN(mvm->queue_info[queue].hw_queue_refcount ||
698702
mvm->queue_info[queue].tid_bitmap ||

0 commit comments

Comments
 (0)