1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-04 17:15:50 +00:00

.. and add some ANI fixes missing from the last ANI commit.

Obtained from:	Atheros
Sponsored by:	Hobnob, Inc.
This commit is contained in:
Adrian Chadd 2011-11-09 05:39:17 +00:00
parent 581449cb66
commit fcf3bb80d5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227377

View File

@ -384,18 +384,16 @@ ar5416AniOfdmErrTrigger(struct ath_hal *ah)
aniState = ahp->ah_curani;
params = aniState->params;
/* First, raise noise immunity level, up to max */
if ((AH5416(ah)->ah_ani_function & (1 << HAL_ANI_NOISE_IMMUNITY_LEVEL)) &&
(aniState->noiseImmunityLevel+1 < params->maxNoiseImmunityLevel)) {
ar5416AniControl(ah, HAL_ANI_NOISE_IMMUNITY_LEVEL,
aniState->noiseImmunityLevel + 1);
return;
if (aniState->noiseImmunityLevel+1 < params->maxNoiseImmunityLevel) {
if (ar5416AniControl(ah, HAL_ANI_NOISE_IMMUNITY_LEVEL,
aniState->noiseImmunityLevel + 1))
return;
}
/* then, raise spur immunity level, up to max */
if ((AH5416(ah)->ah_ani_function & (1 << HAL_ANI_SPUR_IMMUNITY_LEVEL)) &&
(aniState->spurImmunityLevel+1 < params->maxSpurImmunityLevel)) {
ar5416AniControl(ah, HAL_ANI_SPUR_IMMUNITY_LEVEL,
aniState->spurImmunityLevel + 1);
return;
if (aniState->spurImmunityLevel+1 < params->maxSpurImmunityLevel) {
if (ar5416AniControl(ah, HAL_ANI_SPUR_IMMUNITY_LEVEL,
aniState->spurImmunityLevel + 1))
return;
}
if (ANI_ENA_RSSI(ah)) {