Blame SOURCES/0026-Revert-iwlwifi-mvm-config-mac-ctxt-to-HE-before-TLC.patch

deb259
From d48db5470be29664cb44b51e822a55c1b4aae61f Mon Sep 17 00:00:00 2001
deb259
From: Eugene Syromiatnikov <esyr@redhat.com>
deb259
Date: Thu, 1 Aug 2019 14:14:21 +0200
deb259
Subject: [PATCH 3/4] Revert "iwlwifi: mvm: config mac ctxt to HE before TLC"
deb259
deb259
This reverts commit 95dd8ac154b48451e3ce926cd3af4c7eb42b781e.
deb259
---
deb259
 drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 3 ++-
deb259
 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 4 ----
deb259
 2 files changed, 2 insertions(+), 5 deletions(-)
deb259
deb259
Index: src/drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c
deb259
===================================================================
deb259
--- src.orig/drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c	2019-07-31 18:53:33.747919402 +0200
deb259
+++ src/drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c	2019-08-01 14:25:56.840586377 +0200
deb259
@@ -776,7 +776,8 @@
deb259
 	if (vif->probe_req_reg && vif->bss_conf.assoc && vif->p2p)
deb259
 		cmd.filter_flags |= cpu_to_le32(MAC_FILTER_IN_PROBE_REQUEST);
deb259
 
deb259
-	if (vif->bss_conf.he_support && !iwlwifi_mod_params.disable_11ax) {
deb259
+	if (vif->bss_conf.assoc && vif->bss_conf.he_support &&
deb259
+	    !iwlwifi_mod_params.disable_11ax) {
deb259
 		cmd.filter_flags |= cpu_to_le32(MAC_FILTER_IN_11AX);
deb259
 		if (vif->bss_conf.twt_requester)
deb259
 			ctxt_sta->data_policy |= cpu_to_le32(TWT_SUPPORTED);
deb259
Index: src/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
deb259
===================================================================
deb259
--- src.orig/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c	2019-08-01 14:25:51.083659124 +0200
deb259
+++ src/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c	2019-08-01 14:25:56.841586365 +0200
deb259
@@ -3100,15 +3100,11 @@
deb259
 	} else if (old_state == IEEE80211_STA_AUTH &&
deb259
 		   new_state == IEEE80211_STA_ASSOC) {
deb259
 		if (vif->type == NL80211_IFTYPE_AP) {
deb259
-			vif->bss_conf.he_support = sta->he_cap.has_he;
deb259
 			mvmvif->ap_assoc_sta_count++;
deb259
 			iwl_mvm_mac_ctxt_changed(mvm, vif, false, NULL);
deb259
 			if (vif->bss_conf.he_support &&
deb259
 			    !iwlwifi_mod_params.disable_11ax)
deb259
 				iwl_mvm_cfg_he_sta(mvm, vif, mvm_sta->sta_id);
deb259
-		} else if (vif->type == NL80211_IFTYPE_STATION) {
deb259
-			vif->bss_conf.he_support = sta->he_cap.has_he;
deb259
-			iwl_mvm_mac_ctxt_changed(mvm, vif, false, NULL);
deb259
 		}
deb259
 
deb259
 		iwl_mvm_rs_rate_init(mvm, sta, mvmvif->phy_ctxt->channel->band,