[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:
parent
7bca795ee0
commit
7b1c2c4ec2
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user