Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122647
b: refs/heads/master
c: f6688cd
h: refs/heads/master
i:
  122645: 1d3b26c
  122643: f3c4cb2
  122639: 73e6f89
v: v3
  • Loading branch information
Sujith authored and John W. Linville committed Dec 12, 2008
1 parent 3de48bf commit fb88473
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 817e11de2d3392041a70c80a6d5b353ad210f276
refs/heads/master: f6688cd8af6260ad4717ce45d2a614633fcf5540
3 changes: 0 additions & 3 deletions trunk/drivers/net/wireless/ath9k/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -715,9 +715,6 @@ struct ath_softc {
enum ath9k_ht_extprotspacing sc_ht_extprotspacing;
enum ath9k_ht_macmode tx_chan_width;

#ifdef CONFIG_SLOW_ANT_DIV
struct ath_antdiv sc_antdiv;
#endif
enum {
OK, /* no change needed */
UPDATE, /* update pending */
Expand Down
13 changes: 2 additions & 11 deletions trunk/drivers/net/wireless/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,10 +640,7 @@ static struct ath_hal *ath9k_hw_do_attach(u16 devid, struct ath_softc *sc,
struct ath_hal_5416 *ahp;
struct ath_hal *ah;
int ecode;
#ifndef CONFIG_SLOW_ANT_DIV
u32 i;
u32 j;
#endif
u32 i, j;

ahp = ath9k_hw_newstate(devid, sc, mem, status);
if (ahp == NULL)
Expand Down Expand Up @@ -853,7 +850,6 @@ static struct ath_hal *ath9k_hw_do_attach(u16 devid, struct ath_softc *sc,
if (AR_SREV_9280_20_OR_LATER(ah))
ath9k_hw_init_txgain_ini(ah);

#ifndef CONFIG_SLOW_ANT_DIV
if (ah->ah_devid == AR9280_DEVID_PCI) {
for (i = 0; i < ahp->ah_iniModes.ia_rows; i++) {
u32 reg = INI_RA(&ahp->ah_iniModes, i, 0);
Expand All @@ -867,7 +863,7 @@ static struct ath_hal *ath9k_hw_do_attach(u16 devid, struct ath_softc *sc,
}
}
}
#endif

if (!ath9k_hw_fill_cap_info(ah)) {
DPRINTF(ah->ah_sc, ATH_DBG_RESET,
"failed ath9k_hw_fill_cap_info\n");
Expand Down Expand Up @@ -1294,11 +1290,6 @@ static int ath9k_hw_process_ini(struct ath_hal *ah,
u32 reg = INI_RA(&ahp->ah_iniModes, i, 0);
u32 val = INI_RA(&ahp->ah_iniModes, i, modesIndex);

#ifdef CONFIG_SLOW_ANT_DIV
if (ah->ah_devid == AR9280_DEVID_PCI)
val = ath9k_hw_ini_fixup(ah, &ahp->ah_eeprom, reg, val);
#endif

REG_WRITE(ah, reg, val);

if (reg >= 0x7800 && reg < 0x78a0
Expand Down
8 changes: 0 additions & 8 deletions trunk/drivers/net/wireless/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1513,11 +1513,6 @@ static int ath_init(u16 devid, struct ath_softc *sc)
/* save MISC configurations */
sc->sc_config.swBeaconProcess = 1;

#ifdef CONFIG_SLOW_ANT_DIV
/* range is 40 - 255, we use something in the middle */
ath_slow_ant_div_init(&sc->sc_antdiv, sc, 0x127);
#endif

/* setup channels and rates */

sc->sbands[IEEE80211_BAND_2GHZ].channels =
Expand Down Expand Up @@ -2129,9 +2124,6 @@ static void ath9k_remove_interface(struct ieee80211_hw *hw,

DPRINTF(sc, ATH_DBG_CONFIG, "Detach Interface\n");

#ifdef CONFIG_SLOW_ANT_DIV
ath_slow_ant_div_stop(&sc->sc_antdiv);
#endif
/* Stop ANI */
del_timer_sync(&sc->sc_ani.timer);

Expand Down

0 comments on commit fb88473

Please sign in to comment.