Blame SOURCES/0003-Revert-iwlwifi-mvm-fix-pointer-reference-when-settin.patch

deb259
From 83afe9f6493cf209160320e80b451a49c935a536 Mon Sep 17 00:00:00 2001
deb259
From: Eugene Syromiatnikov <esyr@redhat.com>
deb259
Date: Thu, 11 Jul 2019 18:33:58 +0200
deb259
Subject: [PATCH] Revert "iwlwifi: mvm: fix pointer reference when setting HE
deb259
 QAM thres"
deb259
deb259
This reverts commit 0bfefe2f41dd5bd60c7b695e450fc3a931875980.
deb259
---
deb259
 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 10 ++++------
deb259
 1 file changed, 4 insertions(+), 6 deletions(-)
deb259
deb259
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
deb259
index 6e00161fdb92..6bbd30c2ee61 100644
deb259
--- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
deb259
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
deb259
@@ -2348,18 +2348,16 @@ static void iwl_mvm_cfg_he_sta(struct iwl_mvm *mvm,
deb259
 
deb259
 		/* Set the PPE thresholds accordingly */
deb259
 		if (low_th >= 0 && high_th >= 0) {
deb259
-			struct iwl_he_pkt_ext *pkt_ext =
deb259
-				(struct iwl_he_pkt_ext *)&sta_ctxt_cmd.pkt_ext;
deb259
+			u8 ***pkt_ext_qam =
deb259
+				(void *)sta_ctxt_cmd.pkt_ext.pkt_ext_qam_th;
deb259
 
deb259
 			for (i = 0; i < MAX_HE_SUPP_NSS; i++) {
deb259
 				u8 bw;
deb259
 
deb259
 				for (bw = 0; bw < MAX_HE_CHANNEL_BW_INDX;
deb259
 				     bw++) {
deb259
-					pkt_ext->pkt_ext_qam_th[i][bw][0] =
deb259
-						low_th;
deb259
-					pkt_ext->pkt_ext_qam_th[i][bw][1] =
deb259
-						high_th;
deb259
+					pkt_ext_qam[i][bw][0] = low_th;
deb259
+					pkt_ext_qam[i][bw][1] = high_th;
deb259
 				}
deb259
 			}
deb259
 
deb259
-- 
deb259
2.13.6
deb259