]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: ath9k: remove disabling of bands
authorRosen Penev <rosenp@gmail.com>
Thu, 21 May 2026 23:18:06 +0000 (16:18 -0700)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Sat, 6 Jun 2026 15:46:29 +0000 (08:46 -0700)
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.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Link: https://patch.msgid.link/20260521231806.261220-1-rosenp@gmail.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h

index 05c95e67a853bb70453006158025764cc6ee403b..e08ab73fcacb3d405b4498d0a72abe096d6b0727 100644 (file)
@@ -2498,19 +2498,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");
index d9d2f64c557007b431a9c7d9c5d346ac4508cb3e..b942b8303d8f8e3834b93c3ac7c292a586b63475 100644 (file)
@@ -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 */