Skip to contentSkip to conversation

wifi: ath9k: remove disabling of bands

PATCH Applied Rosen Penev 3 participants 3 messages May 21 – Jun 6 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: ath9k: remove disabling of bands

The old platform data code that used this is gone and this serves no purpose.

The modern way to disable bands is ieee80211-freq-limit, which is already implemented.

---
 drivers/net/wireless/ath/ath9k/hw.c | 16 ++++------------
 drivers/net/wireless/ath/ath9k/hw.h |  2 --
 2 files changed, 4 insertions(+), 14 deletions(-)
drivers/net/wireless/ath/ath9k/hw.c +4 -12
index cde318a21a81..9202998920a9 100644
@@ -2527,19 +2527,11 @@ int ath9k_hw_fill_cap_info(struct ath_hw *ah)
 
 	eeval = ah->eep_ops->get_eeprom(ah, EEP_OP_MODE);
 
-	if (eeval & AR5416_OPFLAGS_11A) {
-		if (ah->disable_5ghz)
-			ath_warn(common, "disabling 5GHz band\n");
-		else
-			pCap->hw_caps |= ATH9K_HW_CAP_5GHZ;
-	}
+	if (eeval & AR5416_OPFLAGS_11A)
+		pCap->hw_caps |= ATH9K_HW_CAP_5GHZ;
 
-	if (eeval & AR5416_OPFLAGS_11G) {
-		if (ah->disable_2ghz)
-			ath_warn(common, "disabling 2GHz band\n");
-		else
-			pCap->hw_caps |= ATH9K_HW_CAP_2GHZ;
-	}
+	if (eeval & AR5416_OPFLAGS_11G)
+		pCap->hw_caps |= ATH9K_HW_CAP_2GHZ;
 
 	if ((pCap->hw_caps & (ATH9K_HW_CAP_2GHZ | ATH9K_HW_CAP_5GHZ)) == 0) {
 		ath_err(common, "both bands are disabled\n");
drivers/net/wireless/ath/ath9k/hw.h +0 -2
index d9d2f64c5570..b942b8303d8f 100644
@@ -974,8 +974,6 @@ struct ath_hw {
 	bool is_clk_25mhz;
 	int (*get_mac_revision)(void);
 	int (*external_reset)(void);
-	bool disable_2ghz;
-	bool disable_5ghz;
 
 	const struct firmware *eeprom_blob;
 	u16 *nvmem_blob;	/* devres managed */
Signature · 1 line
2.54.0
Applied
#2 lore raw
In reply to Rosen Penev
Quoted 8 lines · Rosen Penev

The old platform data code that used this is gone and this serves no purpose.

The modern way to disable bands is ieee80211-freq-limit, which is already implemented.

[...]

Applied, thanks!

[1/1] wifi: ath9k: remove disabling of bands

      commit: f0e5e8703fd61dacaa0c18016146e64cf32ddcb7

Best regards,

Signature · 1 line
Jeff Johnson <[email protected]>