]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iwlwifi: mvm: remove txq EMPTYING_DELBA state for DQA
authorLiad Kaufman <liad.kaufman@intel.com>
Wed, 5 Apr 2017 07:35:18 +0000 (10:35 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 22 Jun 2017 21:12:59 +0000 (00:12 +0300)
In DQA mode, there is no need to wait for the TXQ to
clear out after getting a DELBA, since traffic can
continue running on the queue.

Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c

index bc52739eeb2507859b463a3716e83862c10be99b..c76ffe1476b480d1ea8b2fadd4f161bbfac91a3a 100644 (file)
@@ -2814,8 +2814,13 @@ int iwl_mvm_sta_tx_agg_stop(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
                                    "ssn = %d, next_recl = %d\n",
                                    tid_data->ssn, tid_data->next_reclaimed);
 
-               /* There are still packets for this RA / TID in the HW */
-               if (tid_data->ssn != tid_data->next_reclaimed) {
+               /*
+                * There are still packets for this RA / TID in the HW.
+                * Not relevant for DQA mode, since there is no need to disable
+                * the queue.
+                */
+               if (!iwl_mvm_is_dqa_supported(mvm) &&
+                   tid_data->ssn != tid_data->next_reclaimed) {
                        tid_data->state = IWL_EMPTYING_HW_QUEUE_DELBA;
                        err = 0;
                        break;