[ath_hal] Don't do ANI processing if we've reset.

If we've reset then we can't trust the current state of the ANI tracking,
so just wait until next time.

Tested:

* AR5424, STA mode (2GHz)
This commit is contained in:
adrian 2018-06-08 18:15:23 +00:00
parent bf374dd464
commit 286d368761
2 changed files with 6 additions and 0 deletions

View File

@ -1000,6 +1000,9 @@ ar5212AniPoll(struct ath_hal *ah, const struct ieee80211_channel *chan)
ahp->ah_stats.ast_ani_lneg++;
/* restart ANI period if listenTime is invalid */
ar5212AniRestart(ah, aniState);
/* Don't do any further ANI processing here */
return;
}
/* XXX beware of overflow? */
aniState->listenTime += listenTime;

View File

@ -950,6 +950,9 @@ ar5416AniPoll(struct ath_hal *ah, const struct ieee80211_channel *chan)
HALDEBUG(ah, HAL_DEBUG_ANI, "%s: invalid listenTime\n",
__func__);
ar5416AniRestart(ah, aniState);
/* Don't do any further processing */
return;
}
/* XXX beware of overflow? */
aniState->listenTime += listenTime;