diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2008-12-07 11:13:10 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-12 13:48:24 -0500 |
commit | f6688cd8af6260ad4717ce45d2a614633fcf5540 (patch) | |
tree | afbb0d814677e485a973344171fe2a8be7c45fe9 /drivers/net/wireless | |
parent | 817e11de2d3392041a70c80a6d5b353ad210f276 (diff) |
ath9k: Remove remaining occurrences of CONFIG_SLOW_ANT_DIV
Slow Antenna Diversity has been removed, these are remnants
of the old code.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath9k/core.h | 3 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/hw.c | 13 | ||||
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 8 |
3 files changed, 2 insertions, 22 deletions
diff --git a/drivers/net/wireless/ath9k/core.h b/drivers/net/wireless/ath9k/core.h index 9abdbd8686e7..0e3c225c749e 100644 --- a/drivers/net/wireless/ath9k/core.h +++ b/drivers/net/wireless/ath9k/core.h | |||
@@ -715,9 +715,6 @@ struct ath_softc { | |||
715 | enum ath9k_ht_extprotspacing sc_ht_extprotspacing; | 715 | enum ath9k_ht_extprotspacing sc_ht_extprotspacing; |
716 | enum ath9k_ht_macmode tx_chan_width; | 716 | enum ath9k_ht_macmode tx_chan_width; |
717 | 717 | ||
718 | #ifdef CONFIG_SLOW_ANT_DIV | ||
719 | struct ath_antdiv sc_antdiv; | ||
720 | #endif | ||
721 | enum { | 718 | enum { |
722 | OK, /* no change needed */ | 719 | OK, /* no change needed */ |
723 | UPDATE, /* update pending */ | 720 | UPDATE, /* update pending */ |
diff --git a/drivers/net/wireless/ath9k/hw.c b/drivers/net/wireless/ath9k/hw.c index 668865dce533..2176fa8e91e7 100644 --- a/drivers/net/wireless/ath9k/hw.c +++ b/drivers/net/wireless/ath9k/hw.c | |||
@@ -640,10 +640,7 @@ static struct ath_hal *ath9k_hw_do_attach(u16 devid, struct ath_softc *sc, | |||
640 | struct ath_hal_5416 *ahp; | 640 | struct ath_hal_5416 *ahp; |
641 | struct ath_hal *ah; | 641 | struct ath_hal *ah; |
642 | int ecode; | 642 | int ecode; |
643 | #ifndef CONFIG_SLOW_ANT_DIV | 643 | u32 i, j; |
644 | u32 i; | ||
645 | u32 j; | ||
646 | #endif | ||
647 | 644 | ||
648 | ahp = ath9k_hw_newstate(devid, sc, mem, status); | 645 | ahp = ath9k_hw_newstate(devid, sc, mem, status); |
649 | if (ahp == NULL) | 646 | if (ahp == NULL) |
@@ -853,7 +850,6 @@ static struct ath_hal *ath9k_hw_do_attach(u16 devid, struct ath_softc *sc, | |||
853 | if (AR_SREV_9280_20_OR_LATER(ah)) | 850 | if (AR_SREV_9280_20_OR_LATER(ah)) |
854 | ath9k_hw_init_txgain_ini(ah); | 851 | ath9k_hw_init_txgain_ini(ah); |
855 | 852 | ||
856 | #ifndef CONFIG_SLOW_ANT_DIV | ||
857 | if (ah->ah_devid == AR9280_DEVID_PCI) { | 853 | if (ah->ah_devid == AR9280_DEVID_PCI) { |
858 | for (i = 0; i < ahp->ah_iniModes.ia_rows; i++) { | 854 | for (i = 0; i < ahp->ah_iniModes.ia_rows; i++) { |
859 | u32 reg = INI_RA(&ahp->ah_iniModes, i, 0); | 855 | u32 reg = INI_RA(&ahp->ah_iniModes, i, 0); |
@@ -867,7 +863,7 @@ static struct ath_hal *ath9k_hw_do_attach(u16 devid, struct ath_softc *sc, | |||
867 | } | 863 | } |
868 | } | 864 | } |
869 | } | 865 | } |
870 | #endif | 866 | |
871 | if (!ath9k_hw_fill_cap_info(ah)) { | 867 | if (!ath9k_hw_fill_cap_info(ah)) { |
872 | DPRINTF(ah->ah_sc, ATH_DBG_RESET, | 868 | DPRINTF(ah->ah_sc, ATH_DBG_RESET, |
873 | "failed ath9k_hw_fill_cap_info\n"); | 869 | "failed ath9k_hw_fill_cap_info\n"); |
@@ -1294,11 +1290,6 @@ static int ath9k_hw_process_ini(struct ath_hal *ah, | |||
1294 | u32 reg = INI_RA(&ahp->ah_iniModes, i, 0); | 1290 | u32 reg = INI_RA(&ahp->ah_iniModes, i, 0); |
1295 | u32 val = INI_RA(&ahp->ah_iniModes, i, modesIndex); | 1291 | u32 val = INI_RA(&ahp->ah_iniModes, i, modesIndex); |
1296 | 1292 | ||
1297 | #ifdef CONFIG_SLOW_ANT_DIV | ||
1298 | if (ah->ah_devid == AR9280_DEVID_PCI) | ||
1299 | val = ath9k_hw_ini_fixup(ah, &ahp->ah_eeprom, reg, val); | ||
1300 | #endif | ||
1301 | |||
1302 | REG_WRITE(ah, reg, val); | 1293 | REG_WRITE(ah, reg, val); |
1303 | 1294 | ||
1304 | if (reg >= 0x7800 && reg < 0x78a0 | 1295 | if (reg >= 0x7800 && reg < 0x78a0 |
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index 272f806f70cb..44459d7c5469 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -1513,11 +1513,6 @@ static int ath_init(u16 devid, struct ath_softc *sc) | |||
1513 | /* save MISC configurations */ | 1513 | /* save MISC configurations */ |
1514 | sc->sc_config.swBeaconProcess = 1; | 1514 | sc->sc_config.swBeaconProcess = 1; |
1515 | 1515 | ||
1516 | #ifdef CONFIG_SLOW_ANT_DIV | ||
1517 | /* range is 40 - 255, we use something in the middle */ | ||
1518 | ath_slow_ant_div_init(&sc->sc_antdiv, sc, 0x127); | ||
1519 | #endif | ||
1520 | |||
1521 | /* setup channels and rates */ | 1516 | /* setup channels and rates */ |
1522 | 1517 | ||
1523 | sc->sbands[IEEE80211_BAND_2GHZ].channels = | 1518 | sc->sbands[IEEE80211_BAND_2GHZ].channels = |
@@ -2129,9 +2124,6 @@ static void ath9k_remove_interface(struct ieee80211_hw *hw, | |||
2129 | 2124 | ||
2130 | DPRINTF(sc, ATH_DBG_CONFIG, "Detach Interface\n"); | 2125 | DPRINTF(sc, ATH_DBG_CONFIG, "Detach Interface\n"); |
2131 | 2126 | ||
2132 | #ifdef CONFIG_SLOW_ANT_DIV | ||
2133 | ath_slow_ant_div_stop(&sc->sc_antdiv); | ||
2134 | #endif | ||
2135 | /* Stop ANI */ | 2127 | /* Stop ANI */ |
2136 | del_timer_sync(&sc->sc_ani.timer); | 2128 | del_timer_sync(&sc->sc_ani.timer); |
2137 | 2129 | ||