ath9k_hw_init_cal_settings(ah);
ah->ani_function = ATH9K_ANI_ALL;
- if (AR_SREV_9280_10_OR_LATER(ah))
+ if (AR_SREV_9280_10_OR_LATER(ah)) {
ah->ani_function &= ~ATH9K_ANI_NOISE_IMMUNITY_LEVEL;
+ ah->ath9k_hw_rf_set_freq = &ath9k_hw_ar9280_set_channel;
+ } else
+ ah->ath9k_hw_rf_set_freq = &ath9k_hw_set_channel;
ath9k_hw_init_mode_regs(ah);
ath9k_hw_set_regs(ah, chan);
- if (AR_SREV_9280_10_OR_LATER(ah))
- r = ath9k_hw_ar9280_set_channel(ah, chan);
- else
- r = ath9k_hw_set_channel(ah, chan);
+ r = ah->ath9k_hw_rf_set_freq(ah, chan);
if (r) {
ath_print(common, ATH_DBG_FATAL,
"Failed to set channel\n");
REG_WRITE(ah, AR_RSSI_THR, INIT_RSSI_THR);
- if (AR_SREV_9280_10_OR_LATER(ah))
- r = ath9k_hw_ar9280_set_channel(ah, chan);
- else
- r = ath9k_hw_set_channel(ah, chan);
+ r = ah->ath9k_hw_rf_set_freq(ah, chan);
if (r)
return r;