ath9k: Remove unused ath9k_hw_select_antconfig() from hw.c
authorVasanthakumar Thiagarajan <vasanth@atheros.com>
Fri, 23 Jan 2009 09:10:36 +0000 (14:40 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 21:01:24 +0000 (16:01 -0500)
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/ath9k.h
drivers/net/wireless/ath9k/hw.c

index f44aab50a2d63cb99c768cbb2e14ee3e678b1da1..455a53649b32f11909d07e51eeb2634b6a2a3163 100644 (file)
@@ -874,7 +874,6 @@ void ath9k_hw_set_gpio(struct ath_hal *ah, u32 gpio, u32 val);
 #if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE)
 void ath9k_enable_rfkill(struct ath_hal *ah);
 #endif
-int ath9k_hw_select_antconfig(struct ath_hal *ah, u32 cfg);
 u32 ath9k_hw_getdefantenna(struct ath_hal *ah);
 void ath9k_hw_setantenna(struct ath_hal *ah, u32 antenna);
 bool ath9k_hw_setantennaswitch(struct ath_hal *ah,
index 1a49743151ba90c9492a7d685d581a7973cfb456..bb8628c7efa1cbfa3850945132fa830d0e137ca6 100644 (file)
@@ -3542,27 +3542,6 @@ void ath9k_enable_rfkill(struct ath_hal *ah)
 }
 #endif
 
-int ath9k_hw_select_antconfig(struct ath_hal *ah, u32 cfg)
-{
-       struct ath9k_channel *chan = ah->ah_curchan;
-       const struct ath9k_hw_capabilities *pCap = &ah->ah_caps;
-       u16 ant_config;
-       u32 halNumAntConfig;
-
-       halNumAntConfig = IS_CHAN_2GHZ(chan) ?
-               pCap->num_antcfg_2ghz : pCap->num_antcfg_5ghz;
-
-       if (cfg < halNumAntConfig) {
-               if (!ath9k_hw_get_eeprom_antenna_cfg(ah, chan,
-                                                    cfg, &ant_config)) {
-                       REG_WRITE(ah, AR_PHY_SWITCH_COM, ant_config);
-                       return 0;
-               }
-       }
-
-       return -EINVAL;
-}
-
 u32 ath9k_hw_getdefantenna(struct ath_hal *ah)
 {
        return REG_READ(ah, AR_DEF_ANTENNA) & 0x7;