svn commit: r188193 - head/sys/dev/ath/ath_hal/ar5212
Sam Leffler
sam at FreeBSD.org
Thu Feb 5 12:51:53 PST 2009
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;
}
More information about the svn-src-head
mailing list