Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Feb 2009 20:51:53 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188193 - head/sys/dev/ath/ath_hal/ar5212
Message-ID:  <200902052051.n15Kprce038517@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sam
Date: Thu Feb  5 20:51:53 2009
New Revision: 188193
URL: http://svn.freebsd.org/changeset/base/188193

Log:
  fill in ar5212ResetCalValid; reset the IQ valid flag on the channel
  so IQ calibration will be started on the next periodic cal

Modified:
  head/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c

Modified: head/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c	Thu Feb  5 20:49:13 2009	(r188192)
+++ head/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c	Thu Feb  5 20:51:53 2009	(r188193)
@@ -1089,7 +1089,16 @@ ar5212PerCalibration(struct ath_hal *ah,
 HAL_BOOL
 ar5212ResetCalValid(struct ath_hal *ah, const struct ieee80211_channel *chan)
 {
-	/* XXX */
+	HAL_CHANNEL_INTERNAL *ichan;
+
+	ichan = ath_hal_checkchannel(ah, chan);
+	if (ichan == AH_NULL) {
+		HALDEBUG(ah, HAL_DEBUG_ANY,
+		    "%s: invalid channel %u/0x%x; no mapping\n",
+		    __func__, chan->ic_freq, chan->ic_flags);
+		return AH_FALSE;
+	}
+	ichan->privFlags &= ~CHANNEL_IQVALID;
 	return AH_TRUE;
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902052051.n15Kprce038517>