|  | @@ -1141,12 +1141,12 @@ static int ar5008_hw_ani_control_old(struct ath_hw *ah,
 | 
		
	
		
			
			| 1141 | 1141 |  			REG_CLR_BIT(ah, AR_PHY_SFCORR_LOW,
 | 
		
	
		
			
			| 1142 | 1142 |  				    AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW);
 | 
		
	
		
			
			| 1143 | 1143 |  
 | 
		
	
		
			
			| 1144 |  | -		if (!on != aniState->ofdmWeakSigDetectOff) {
 | 
		
	
		
			
			|  | 1144 | +		if (on != aniState->ofdmWeakSigDetect) {
 | 
		
	
		
			
			| 1145 | 1145 |  			if (on)
 | 
		
	
		
			
			| 1146 | 1146 |  				ah->stats.ast_ani_ofdmon++;
 | 
		
	
		
			
			| 1147 | 1147 |  			else
 | 
		
	
		
			
			| 1148 | 1148 |  				ah->stats.ast_ani_ofdmoff++;
 | 
		
	
		
			
			| 1149 |  | -			aniState->ofdmWeakSigDetectOff = !on;
 | 
		
	
		
			
			|  | 1149 | +			aniState->ofdmWeakSigDetect = on;
 | 
		
	
		
			
			| 1150 | 1150 |  		}
 | 
		
	
		
			
			| 1151 | 1151 |  		break;
 | 
		
	
		
			
			| 1152 | 1152 |  	}
 | 
		
	
	
		
			
			|  | @@ -1215,10 +1215,10 @@ static int ar5008_hw_ani_control_old(struct ath_hw *ah,
 | 
		
	
		
			
			| 1215 | 1215 |  
 | 
		
	
		
			
			| 1216 | 1216 |  	DBG2("ath9k: ANI parameters:\n");
 | 
		
	
		
			
			| 1217 | 1217 |  	DBG2(
 | 
		
	
		
			
			| 1218 |  | -		"noiseImmunityLevel=%d, spurImmunityLevel=%d, ofdmWeakSigDetectOff=%d\n",
 | 
		
	
		
			
			|  | 1218 | +		"noiseImmunityLevel=%d, spurImmunityLevel=%d, ofdmWeakSigDetect=%d\n",
 | 
		
	
		
			
			| 1219 | 1219 |  		aniState->noiseImmunityLevel,
 | 
		
	
		
			
			| 1220 | 1220 |  		aniState->spurImmunityLevel,
 | 
		
	
		
			
			| 1221 |  | -		!aniState->ofdmWeakSigDetectOff);
 | 
		
	
		
			
			|  | 1221 | +		aniState->ofdmWeakSigDetect);
 | 
		
	
		
			
			| 1222 | 1222 |  	DBG2(
 | 
		
	
		
			
			| 1223 | 1223 |  		"cckWeakSigThreshold=%d, firstepLevel=%d, listenTime=%d\n",
 | 
		
	
		
			
			| 1224 | 1224 |  		aniState->cckWeakSigThreshold,
 | 
		
	
	
		
			
			|  | @@ -1307,18 +1307,18 @@ static int ar5008_hw_ani_control_new(struct ath_hw *ah,
 | 
		
	
		
			
			| 1307 | 1307 |  			REG_CLR_BIT(ah, AR_PHY_SFCORR_LOW,
 | 
		
	
		
			
			| 1308 | 1308 |  				    AR_PHY_SFCORR_LOW_USE_SELF_CORR_LOW);
 | 
		
	
		
			
			| 1309 | 1309 |  
 | 
		
	
		
			
			| 1310 |  | -		if (!on != aniState->ofdmWeakSigDetectOff) {
 | 
		
	
		
			
			|  | 1310 | +		if (on != aniState->ofdmWeakSigDetect) {
 | 
		
	
		
			
			| 1311 | 1311 |  			DBG2("ath9k: "
 | 
		
	
		
			
			| 1312 | 1312 |  				"** ch %d: ofdm weak signal: %s=>%s\n",
 | 
		
	
		
			
			| 1313 | 1313 |  				chan->channel,
 | 
		
	
		
			
			| 1314 |  | -				!aniState->ofdmWeakSigDetectOff ?
 | 
		
	
		
			
			|  | 1314 | +				aniState->ofdmWeakSigDetect ?
 | 
		
	
		
			
			| 1315 | 1315 |  				"on" : "off",
 | 
		
	
		
			
			| 1316 | 1316 |  				on ? "on" : "off");
 | 
		
	
		
			
			| 1317 | 1317 |  			if (on)
 | 
		
	
		
			
			| 1318 | 1318 |  				ah->stats.ast_ani_ofdmon++;
 | 
		
	
		
			
			| 1319 | 1319 |  			else
 | 
		
	
		
			
			| 1320 | 1320 |  				ah->stats.ast_ani_ofdmoff++;
 | 
		
	
		
			
			| 1321 |  | -			aniState->ofdmWeakSigDetectOff = !on;
 | 
		
	
		
			
			|  | 1321 | +			aniState->ofdmWeakSigDetect = on;
 | 
		
	
		
			
			| 1322 | 1322 |  		}
 | 
		
	
		
			
			| 1323 | 1323 |  		break;
 | 
		
	
		
			
			| 1324 | 1324 |  	}
 | 
		
	
	
		
			
			|  | @@ -1467,7 +1467,7 @@ static int ar5008_hw_ani_control_new(struct ath_hw *ah,
 | 
		
	
		
			
			| 1467 | 1467 |  	DBG2("ath9k: "
 | 
		
	
		
			
			| 1468 | 1468 |  		"ANI parameters: SI=%d, ofdmWS=%s FS=%d MRCcck=%s listenTime=%d ofdmErrs=%d cckErrs=%d\n",
 | 
		
	
		
			
			| 1469 | 1469 |  		aniState->spurImmunityLevel,
 | 
		
	
		
			
			| 1470 |  | -		!aniState->ofdmWeakSigDetectOff ? "on" : "off",
 | 
		
	
		
			
			|  | 1470 | +		aniState->ofdmWeakSigDetect ? "on" : "off",
 | 
		
	
		
			
			| 1471 | 1471 |  		aniState->firstepLevel,
 | 
		
	
		
			
			| 1472 | 1472 |  		!aniState->mrcCCKOff ? "on" : "off",
 | 
		
	
		
			
			| 1473 | 1473 |  		aniState->listenTime,
 | 
		
	
	
		
			
			|  | @@ -1554,7 +1554,7 @@ static void ar5008_hw_ani_cache_ini_regs(struct ath_hw *ah)
 | 
		
	
		
			
			| 1554 | 1554 |  	/* these levels just got reset to defaults by the INI */
 | 
		
	
		
			
			| 1555 | 1555 |  	aniState->spurImmunityLevel = ATH9K_ANI_SPUR_IMMUNE_LVL_NEW;
 | 
		
	
		
			
			| 1556 | 1556 |  	aniState->firstepLevel = ATH9K_ANI_FIRSTEP_LVL_NEW;
 | 
		
	
		
			
			| 1557 |  | -	aniState->ofdmWeakSigDetectOff = !ATH9K_ANI_USE_OFDM_WEAK_SIG;
 | 
		
	
		
			
			|  | 1557 | +	aniState->ofdmWeakSigDetect = ATH9K_ANI_USE_OFDM_WEAK_SIG;
 | 
		
	
		
			
			| 1558 | 1558 |  	aniState->mrcCCKOff = 1; /* not available on pre AR9003 */
 | 
		
	
		
			
			| 1559 | 1559 |  }
 | 
		
	
		
			
			| 1560 | 1560 |  
 |