diff options
| author | Liad Kaufman <[email protected]> | 2015-12-23 14:03:46 +0000 |
|---|---|---|
| committer | Luca Coelho <[email protected]> | 2016-08-30 11:16:34 +0000 |
| commit | 9f9af3d7d303a5f622ceb219bd03bba3af553e76 (patch) | |
| tree | 2c935456fd5d41ed9be2381adeb2be29913ddc87 /drivers/net/wireless/intel/iwlwifi/mvm/utils.c | |
| parent | iwlwifi: mvm: support new paging command format (diff) | |
| download | kernel-9f9af3d7d303a5f622ceb219bd03bba3af553e76.tar.gz kernel-9f9af3d7d303a5f622ceb219bd03bba3af553e76.zip | |
iwlwifi: mvm: re-aggregate shared queue after unsharing
When a shared queue becomes unshared, aggregations should be
re-enabled if they've existed before. Make sure that they do
this, if required.
Signed-off-by: Liad Kaufman <[email protected]>
Signed-off-by: Luca Coelho <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/utils.c')
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/utils.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c index 68f4e7fdfc11..dae64a67a531 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c @@ -1131,7 +1131,13 @@ static void iwl_mvm_remove_inactive_tids(struct iwl_mvm *mvm, BIT(mvmsta->vif->hw_queue[tid_to_mac80211_ac[tid]]); } - /* TODO: if queue was shared - need to re-enable AGGs */ + /* If the queue is marked as shared - "unshare" it */ + if (mvm->queue_info[queue].hw_queue_refcount == 1 && + mvm->queue_info[queue].status == IWL_MVM_QUEUE_SHARED) { + mvm->queue_info[queue].status = IWL_MVM_QUEUE_RECONFIGURING; + IWL_DEBUG_TX_QUEUES(mvm, "Marking Q:%d for reconfig\n", + queue); + } } void iwl_mvm_inactivity_check(struct iwl_mvm *mvm) |
