Blame SOURCES/0020-Revert-iwlwifi-mvm-remove-redundant-condition.patch

deb259
From a1e09a08fc21c3c17dc24f0d3413f8322c9c313f Mon Sep 17 00:00:00 2001
deb259
From: Eugene Syromiatnikov <esyr@redhat.com>
deb259
Date: Thu, 25 Jul 2019 15:50:40 +0200
deb259
Subject: [PATCH 4/7] Revert "iwlwifi: mvm: remove redundant condition"
deb259
deb259
This reverts commit f992c61d59fb2eb1a234890ef92f378a47ebe20b.
deb259
---
deb259
 drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 8 +++++---
deb259
 1 file changed, 5 insertions(+), 3 deletions(-)
deb259
deb259
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
deb259
index f545a737a92d..e3a35434a439 100644
deb259
--- a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
deb259
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c
deb259
@@ -793,9 +793,11 @@ static int iwl_mvm_sta_alloc_queue_tvqm(struct iwl_mvm *mvm,
deb259
 	if (queue < 0)
deb259
 		return queue;
deb259
 
deb259
-	mvmtxq->txq_id = queue;
deb259
-	mvm->tvqm_info[queue].txq_tid = tid;
deb259
-	mvm->tvqm_info[queue].sta_id = mvmsta->sta_id;
deb259
+	if (sta) {
deb259
+		mvmtxq->txq_id = queue;
deb259
+		mvm->tvqm_info[queue].txq_tid = tid;
deb259
+		mvm->tvqm_info[queue].sta_id = mvmsta->sta_id;
deb259
+	}
deb259
 
deb259
 	IWL_DEBUG_TX_QUEUES(mvm, "Allocated queue is %d\n", queue);
deb259
 
deb259
-- 
deb259
2.13.6
deb259