|
@@ -808,7 +808,8 @@ void ath9k_htc_ani_work(struct work_struct *work)
|
|
|
}
|
|
|
|
|
|
/* Verify whether we must check ANI */
|
|
|
- if ((timestamp - common->ani.checkani_timer) >= ATH_ANI_POLLINTERVAL) {
|
|
|
+ if (ah->config.enable_ani &&
|
|
|
+ (timestamp - common->ani.checkani_timer) >= ATH_ANI_POLLINTERVAL) {
|
|
|
aniflag = true;
|
|
|
common->ani.checkani_timer = timestamp;
|
|
|
}
|
|
@@ -838,7 +839,7 @@ set_timer:
|
|
|
* short calibration and long calibration.
|
|
|
*/
|
|
|
cal_interval = ATH_LONG_CALINTERVAL;
|
|
|
- if (priv->ah->config.enable_ani)
|
|
|
+ if (ah->config.enable_ani)
|
|
|
cal_interval = min(cal_interval, (u32)ATH_ANI_POLLINTERVAL);
|
|
|
if (!common->ani.caldone)
|
|
|
cal_interval = min(cal_interval, (u32)short_cal_interval);
|