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>
This commit is contained in:

committed by
John W. Linville

parent
76061abbbb
commit
c9e27d94f5
@@ -372,8 +372,7 @@ static void ath_ani_calibrate(unsigned long data)
|
||||
} else {
|
||||
if ((timestamp - sc->sc_ani.sc_resetcal_timer) >=
|
||||
ATH_RESTART_CALINTERVAL) {
|
||||
ath9k_hw_reset_calvalid(ah, ah->ah_curchan,
|
||||
&sc->sc_ani.sc_caldone);
|
||||
sc->sc_ani.sc_caldone = ath9k_hw_reset_calvalid(ah);
|
||||
if (sc->sc_ani.sc_caldone)
|
||||
sc->sc_ani.sc_resetcal_timer = timestamp;
|
||||
}
|
||||
|
Reference in New Issue
Block a user