diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-02-09 02:57:12 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-13 13:45:05 -0500 |
commit | cbe61d8a41210600bc76b212edcd4dc0f55c014f (patch) | |
tree | d8bd8e43d3556c58d410f1bef0d2ca3bf7d75c92 /drivers/net/wireless/ath9k/main.c | |
parent | ba52da58be0acf3b7775972b2b5234ce64388c79 (diff) |
ath9k: Merge ath_hal and ath_hal_5416 structures
Finally, merge these structures and have a single
HW specific data structure.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index bafefbed8382..a50f989abd6c 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -137,7 +137,7 @@ static void ath_cache_conf_rate(struct ath_softc *sc, | |||
137 | 137 | ||
138 | static void ath_update_txpow(struct ath_softc *sc) | 138 | static void ath_update_txpow(struct ath_softc *sc) |
139 | { | 139 | { |
140 | struct ath_hal *ah = sc->sc_ah; | 140 | struct ath_hw *ah = sc->sc_ah; |
141 | u32 txpow; | 141 | u32 txpow; |
142 | 142 | ||
143 | if (sc->curtxpow != sc->config.txpowlimit) { | 143 | if (sc->curtxpow != sc->config.txpowlimit) { |
@@ -234,7 +234,7 @@ static void ath_setup_rates(struct ath_softc *sc, enum ieee80211_band band) | |||
234 | */ | 234 | */ |
235 | static int ath_set_channel(struct ath_softc *sc, struct ath9k_channel *hchan) | 235 | static int ath_set_channel(struct ath_softc *sc, struct ath9k_channel *hchan) |
236 | { | 236 | { |
237 | struct ath_hal *ah = sc->sc_ah; | 237 | struct ath_hw *ah = sc->sc_ah; |
238 | bool fastcc = true, stopped; | 238 | bool fastcc = true, stopped; |
239 | struct ieee80211_hw *hw = sc->hw; | 239 | struct ieee80211_hw *hw = sc->hw; |
240 | struct ieee80211_channel *channel = hw->conf.channel; | 240 | struct ieee80211_channel *channel = hw->conf.channel; |
@@ -309,7 +309,7 @@ static int ath_set_channel(struct ath_softc *sc, struct ath9k_channel *hchan) | |||
309 | static void ath_ani_calibrate(unsigned long data) | 309 | static void ath_ani_calibrate(unsigned long data) |
310 | { | 310 | { |
311 | struct ath_softc *sc; | 311 | struct ath_softc *sc; |
312 | struct ath_hal *ah; | 312 | struct ath_hw *ah; |
313 | bool longcal = false; | 313 | bool longcal = false; |
314 | bool shortcal = false; | 314 | bool shortcal = false; |
315 | bool aniflag = false; | 315 | bool aniflag = false; |
@@ -479,7 +479,7 @@ static void ath9k_tasklet(unsigned long data) | |||
479 | irqreturn_t ath_isr(int irq, void *dev) | 479 | irqreturn_t ath_isr(int irq, void *dev) |
480 | { | 480 | { |
481 | struct ath_softc *sc = dev; | 481 | struct ath_softc *sc = dev; |
482 | struct ath_hal *ah = sc->sc_ah; | 482 | struct ath_hw *ah = sc->sc_ah; |
483 | enum ath9k_int status; | 483 | enum ath9k_int status; |
484 | bool sched = false; | 484 | bool sched = false; |
485 | 485 | ||
@@ -1091,7 +1091,7 @@ fail: | |||
1091 | 1091 | ||
1092 | static void ath_radio_enable(struct ath_softc *sc) | 1092 | static void ath_radio_enable(struct ath_softc *sc) |
1093 | { | 1093 | { |
1094 | struct ath_hal *ah = sc->sc_ah; | 1094 | struct ath_hw *ah = sc->sc_ah; |
1095 | struct ieee80211_channel *channel = sc->hw->conf.channel; | 1095 | struct ieee80211_channel *channel = sc->hw->conf.channel; |
1096 | int r; | 1096 | int r; |
1097 | 1097 | ||
@@ -1132,7 +1132,7 @@ static void ath_radio_enable(struct ath_softc *sc) | |||
1132 | 1132 | ||
1133 | static void ath_radio_disable(struct ath_softc *sc) | 1133 | static void ath_radio_disable(struct ath_softc *sc) |
1134 | { | 1134 | { |
1135 | struct ath_hal *ah = sc->sc_ah; | 1135 | struct ath_hw *ah = sc->sc_ah; |
1136 | struct ieee80211_channel *channel = sc->hw->conf.channel; | 1136 | struct ieee80211_channel *channel = sc->hw->conf.channel; |
1137 | int r; | 1137 | int r; |
1138 | 1138 | ||
@@ -1167,7 +1167,7 @@ static void ath_radio_disable(struct ath_softc *sc) | |||
1167 | 1167 | ||
1168 | static bool ath_is_rfkill_set(struct ath_softc *sc) | 1168 | static bool ath_is_rfkill_set(struct ath_softc *sc) |
1169 | { | 1169 | { |
1170 | struct ath_hal *ah = sc->sc_ah; | 1170 | struct ath_hw *ah = sc->sc_ah; |
1171 | 1171 | ||
1172 | return ath9k_hw_gpio_get(ah, ah->ah_rfkill_gpio) == | 1172 | return ath9k_hw_gpio_get(ah, ah->ah_rfkill_gpio) == |
1173 | ah->ah_rfkill_polarity; | 1173 | ah->ah_rfkill_polarity; |
@@ -1345,7 +1345,7 @@ void ath_detach(struct ath_softc *sc) | |||
1345 | 1345 | ||
1346 | static int ath_init(u16 devid, struct ath_softc *sc) | 1346 | static int ath_init(u16 devid, struct ath_softc *sc) |
1347 | { | 1347 | { |
1348 | struct ath_hal *ah = NULL; | 1348 | struct ath_hw *ah = NULL; |
1349 | int status; | 1349 | int status; |
1350 | int error = 0, i; | 1350 | int error = 0, i; |
1351 | int csz = 0; | 1351 | int csz = 0; |
@@ -1370,7 +1370,7 @@ static int ath_init(u16 devid, struct ath_softc *sc) | |||
1370 | /* XXX assert csz is non-zero */ | 1370 | /* XXX assert csz is non-zero */ |
1371 | sc->cachelsz = csz << 2; /* convert to bytes */ | 1371 | sc->cachelsz = csz << 2; /* convert to bytes */ |
1372 | 1372 | ||
1373 | ah = ath9k_hw_attach(devid, sc, sc->mem, &status); | 1373 | ah = ath9k_hw_attach(devid, sc, &status); |
1374 | if (ah == NULL) { | 1374 | if (ah == NULL) { |
1375 | DPRINTF(sc, ATH_DBG_FATAL, | 1375 | DPRINTF(sc, ATH_DBG_FATAL, |
1376 | "Unable to attach hardware; HAL status %d\n", status); | 1376 | "Unable to attach hardware; HAL status %d\n", status); |
@@ -1671,7 +1671,7 @@ detach: | |||
1671 | 1671 | ||
1672 | int ath_reset(struct ath_softc *sc, bool retry_tx) | 1672 | int ath_reset(struct ath_softc *sc, bool retry_tx) |
1673 | { | 1673 | { |
1674 | struct ath_hal *ah = sc->sc_ah; | 1674 | struct ath_hw *ah = sc->sc_ah; |
1675 | struct ieee80211_hw *hw = sc->hw; | 1675 | struct ieee80211_hw *hw = sc->hw; |
1676 | int r; | 1676 | int r; |
1677 | 1677 | ||
@@ -2272,7 +2272,7 @@ static int ath9k_config_interface(struct ieee80211_hw *hw, | |||
2272 | struct ieee80211_if_conf *conf) | 2272 | struct ieee80211_if_conf *conf) |
2273 | { | 2273 | { |
2274 | struct ath_softc *sc = hw->priv; | 2274 | struct ath_softc *sc = hw->priv; |
2275 | struct ath_hal *ah = sc->sc_ah; | 2275 | struct ath_hw *ah = sc->sc_ah; |
2276 | struct ath_vif *avp = (void *)vif->drv_priv; | 2276 | struct ath_vif *avp = (void *)vif->drv_priv; |
2277 | u32 rfilt = 0; | 2277 | u32 rfilt = 0; |
2278 | int error, i; | 2278 | int error, i; |