ath9k: Remove unused ANI commands
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Tue, 27 Aug 2013 06:04:26 +0000 (11:34 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 28 Aug 2013 17:58:27 +0000 (13:58 -0400)
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ani.c
drivers/net/wireless/ath/ath9k/ani.h
drivers/net/wireless/ath/ath9k/ar5008_phy.c
drivers/net/wireless/ath/ath9k/ar9003_phy.c
drivers/net/wireless/ath/ath9k/hw.c

index 4994bea809eb00db15a8899ee5d2dd966002db4a..be466b0ef7a7725c736114ee439596ca45a4a380 100644 (file)
@@ -319,9 +319,6 @@ void ath9k_ani_reset(struct ath_hw *ah, bool is_scanning)
                        ah->ani_function = 0;
        }
 
-       /* always allow mode (on/off) to be controlled */
-       ah->ani_function |= ATH9K_ANI_MODE;
-
        ofdm_nil = max_t(int, ATH9K_ANI_OFDM_DEF_LEVEL,
                         aniState->ofdmNoiseImmunityLevel);
        cck_nil = max_t(int, ATH9K_ANI_CCK_DEF_LEVEL,
index b54a3fb0188391eba46a797f923a15b40fe34b66..21e7b83c3f6ac85e881b49b315256e931728ec7e 100644 (file)
 /* values here are relative to the INI */
 
 enum ath9k_ani_cmd {
-       ATH9K_ANI_PRESENT = 0x1,
-       ATH9K_ANI_NOISE_IMMUNITY_LEVEL = 0x2,
-       ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION = 0x4,
-       ATH9K_ANI_CCK_WEAK_SIGNAL_THR = 0x8,
-       ATH9K_ANI_FIRSTEP_LEVEL = 0x10,
-       ATH9K_ANI_SPUR_IMMUNITY_LEVEL = 0x20,
-       ATH9K_ANI_MODE = 0x40,
-       ATH9K_ANI_PHYERR_RESET = 0x80,
-       ATH9K_ANI_MRC_CCK = 0x100,
+       ATH9K_ANI_OFDM_WEAK_SIGNAL_DETECTION = 0x1,
+       ATH9K_ANI_FIRSTEP_LEVEL = 0x2,
+       ATH9K_ANI_SPUR_IMMUNITY_LEVEL = 0x4,
+       ATH9K_ANI_MRC_CCK = 0x8,
        ATH9K_ANI_ALL = 0xfff
 };
 
index 1576d58291d457612ddeadf0933904bf6f552d3a..08656473c63e5a796b37bcd25f087504d85433fb 100644 (file)
@@ -1160,8 +1160,6 @@ static bool ar5008_hw_ani_control_new(struct ath_hw *ah,
                 */
                WARN_ON(1);
                break;
-       case ATH9K_ANI_PRESENT:
-               break;
        default:
                ath_dbg(common, ANI, "invalid cmd %u\n", cmd);
                return false;
index 46b910a857d9fba73fb7f56817ed19b6edc006cd..e897648d32335dd1800df489916afa80fca81a2b 100644 (file)
@@ -1193,8 +1193,6 @@ skip_ws_det:
                }
        break;
        }
-       case ATH9K_ANI_PRESENT:
-               break;
        default:
                ath_dbg(common, ANI, "invalid cmd %u\n", cmd);
                return false;
index 2670bf6cb066d0bab95bdc1a024fb367f20414c1..ec47c506f175cc1ab1bcf80b91ce5fde0d03607d 100644 (file)
@@ -655,8 +655,6 @@ static int __ath9k_hw_init(struct ath_hw *ah)
        ath9k_hw_init_cal_settings(ah);
 
        ah->ani_function = ATH9K_ANI_ALL;
-       if (AR_SREV_9280_20_OR_LATER(ah) && !AR_SREV_9300_20_OR_LATER(ah))
-               ah->ani_function &= ~ATH9K_ANI_NOISE_IMMUNITY_LEVEL;
        if (!AR_SREV_9300_20_OR_LATER(ah))
                ah->ani_function &= ~ATH9K_ANI_MRC_CCK;