Blame SOURCES/0028-Revert-iwlwifi-trust-calling-function.patch

deb259
From e7a8266afda457bb661675b67779a38731362c2c Mon Sep 17 00:00:00 2001
deb259
From: Eugene Syromiatnikov <esyr@redhat.com>
deb259
Date: Mon, 5 Aug 2019 22:51:41 +0200
deb259
Subject: [PATCH 1/2] Revert "iwlwifi: trust calling function"
deb259
deb259
This reverts commit 5dcfcc01b7c686f509d214467a2ab0de08284551.
deb259
---
deb259
 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 7 ++++++-
deb259
 1 file changed, 6 insertions(+), 1 deletion(-)
deb259
deb259
diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c b/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c
deb259
index 290ef2726f47..6d14689b8ff6 100644
deb259
--- a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c
deb259
+++ b/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c
deb259
@@ -665,7 +665,12 @@ static struct ieee80211_sband_iftype_data iwl_he_capa[] = {
deb259
 static void iwl_init_he_hw_capab(struct ieee80211_supported_band *sband,
deb259
 				 u8 tx_chains, u8 rx_chains)
deb259
 {
deb259
-	sband->iftype_data = iwl_he_capa;
deb259
+	if (sband->band == NL80211_BAND_2GHZ ||
deb259
+	    sband->band == NL80211_BAND_5GHZ)
deb259
+		sband->iftype_data = iwl_he_capa;
deb259
+	else
deb259
+		return;
deb259
+
deb259
 	sband->n_iftype_data = ARRAY_SIZE(iwl_he_capa);
deb259
 
deb259
 	/* If not 2x2, we need to indicate 1x1 in the Midamble RX Max NSTS */
deb259
-- 
deb259
2.13.6
deb259