aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath9k/main.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2008-12-23 18:58:42 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:59:31 -0500
commitc9e27d94f5fc726f88897914025619fbfc18b23c (patch)
treee20d606c6d98a76b77f2bd3737ea58acf1cd335e /drivers/net/wireless/ath9k/main.c
parent76061abbbb39ba4bdf42fe28aa3157df8bb03d38 (diff)
ath9k: use ieee80211_conf on ath9k_hw_iscal_supported()
ath9k_hw_iscal_supported() just needs to be aware of your band and if HT20 is being used so lets abandon our internal channel, HT appended values and internal mode values and use ieee80211_conf which already carries this information. This works as calibration is being done for the currently configured channel. Signed-off-by: Luis R. Rodriguez <lrodriguez@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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c
index 12c5b9a44904..7d9a263ea0a7 100644
--- a/drivers/net/wireless/ath9k/main.c
+++ b/drivers/net/wireless/ath9k/main.c
@@ -372,8 +372,7 @@ static void ath_ani_calibrate(unsigned long data)
372 } else { 372 } else {
373 if ((timestamp - sc->sc_ani.sc_resetcal_timer) >= 373 if ((timestamp - sc->sc_ani.sc_resetcal_timer) >=
374 ATH_RESTART_CALINTERVAL) { 374 ATH_RESTART_CALINTERVAL) {
375 ath9k_hw_reset_calvalid(ah, ah->ah_curchan, 375 sc->sc_ani.sc_caldone = ath9k_hw_reset_calvalid(ah);
376 &sc->sc_ani.sc_caldone);
377 if (sc->sc_ani.sc_caldone) 376 if (sc->sc_ani.sc_caldone)
378 sc->sc_ani.sc_resetcal_timer = timestamp; 377 sc->sc_ani.sc_resetcal_timer = timestamp;
379 } 378 }