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__);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to