diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-09-13 03:03:27 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:28 -0400 |
commit | b002a4a950e41326310795cf4a0c74d0e90fa70a (patch) | |
tree | 57057bf14397542cab1c5c558727e9cec6e379eb /drivers/net/wireless/ath/ath9k/calib.c | |
parent | 13b81559200b8e54473e5b140323cbb5f2bb21c0 (diff) |
atheros: add ieee80211_hw to ath_common
Make use of it on hw code in ath9k to avoid
using the ath9k ath_softc.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/calib.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/calib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c index 30106f49322a..bdd4a19f32be 100644 --- a/drivers/net/wireless/ath/ath9k/calib.c +++ b/drivers/net/wireless/ath/ath9k/calib.c | |||
@@ -278,7 +278,7 @@ static bool ath9k_hw_per_calibration(struct ath_hw *ah, | |||
278 | static bool ath9k_hw_iscal_supported(struct ath_hw *ah, | 278 | static bool ath9k_hw_iscal_supported(struct ath_hw *ah, |
279 | enum ath9k_cal_types calType) | 279 | enum ath9k_cal_types calType) |
280 | { | 280 | { |
281 | struct ieee80211_conf *conf = &ah->ah_sc->hw->conf; | 281 | struct ieee80211_conf *conf = &ath9k_hw_common(ah)->hw->conf; |
282 | 282 | ||
283 | switch (calType & ah->supp_cals) { | 283 | switch (calType & ah->supp_cals) { |
284 | case IQ_MISMATCH_CAL: /* Both 2 GHz and 5 GHz support OFDM */ | 284 | case IQ_MISMATCH_CAL: /* Both 2 GHz and 5 GHz support OFDM */ |
@@ -555,7 +555,7 @@ static void ath9k_hw_adc_dccal_calibrate(struct ath_hw *ah, u8 numChains) | |||
555 | /* This is done for the currently configured channel */ | 555 | /* This is done for the currently configured channel */ |
556 | bool ath9k_hw_reset_calvalid(struct ath_hw *ah) | 556 | bool ath9k_hw_reset_calvalid(struct ath_hw *ah) |
557 | { | 557 | { |
558 | struct ieee80211_conf *conf = &ah->ah_sc->hw->conf; | 558 | struct ieee80211_conf *conf = &ath9k_hw_common(ah)->hw->conf; |
559 | struct ath9k_cal_list *currCal = ah->cal_list_curr; | 559 | struct ath9k_cal_list *currCal = ah->cal_list_curr; |
560 | 560 | ||
561 | if (!ah->curchan) | 561 | if (!ah->curchan) |