Use ar5212IsNFCalInProgress() to check for NF calibration progress.

This commit is contained in:
Adrian Chadd 2010-08-12 06:14:26 +00:00
parent 245f553a78
commit 5215ce1038

View File

@ -632,7 +632,7 @@ ar5416GetNf(struct ath_hal *ah, struct ieee80211_channel *chan)
{ {
int16_t nf, nfThresh; int16_t nf, nfThresh;
if (OS_REG_READ(ah, AR_PHY_AGC_CONTROL) & AR_PHY_AGC_CONTROL_NF) { if (ar5212IsNFCalInProgress(ah)) {
HALDEBUG(ah, HAL_DEBUG_ANY, HALDEBUG(ah, HAL_DEBUG_ANY,
"%s: NF didn't complete in calibration window\n", __func__); "%s: NF didn't complete in calibration window\n", __func__);
nf = 0; nf = 0;