Date: Sun, 15 May 2011 07:59:33 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r221944 - head/sys/dev/ath/ath_hal/ar5416 Message-ID: <201105150759.p4F7xX5d029735@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Sun May 15 07:59:33 2011 New Revision: 221944 URL: http://svn.freebsd.org/changeset/base/221944 Log: Fix NF calibration breakage introduced by me in a past commit. Since the returned NF will be -ve, checking for <= 0 is not good enough. For now, check whether it equals 0 or -1; a future commit will tidy this mess up and have it return HAL_BOOL instead. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c ============================================================================== --- head/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c Sun May 15 06:42:32 2011 (r221943) +++ head/sys/dev/ath/ath_hal/ar5416/ar5416_cal.c Sun May 15 07:59:33 2011 (r221944) @@ -501,7 +501,7 @@ ar5416PerCalibrationN(struct ath_hal *ah * and update the history buffer. */ r = ar5416GetNf(ah, chan); - if (r <= 0) { + if (r == 0 || r == -1) { /* NF calibration result isn't valid */ HALDEBUG(ah, HAL_DEBUG_UNMASKABLE, "%s: NF calibration" " didn't finish; delaying CCA\n", __func__);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105150759.p4F7xX5d029735>