summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-02-05 20:51:53 +0000
committersam <sam@FreeBSD.org>2009-02-05 20:51:53 +0000
commitd9b4eedcd5e5cba6068f7d636962f7140b5fa156 (patch)
tree9fba750e7eea18b740743284d1d1a0a5efccd7f2 /sys/dev/ath
parent3eb0ca6204588965108ce1c048dff6380d649b1e (diff)
downloadFreeBSD-src-d9b4eedcd5e5cba6068f7d636962f7140b5fa156.zip
FreeBSD-src-d9b4eedcd5e5cba6068f7d636962f7140b5fa156.tar.gz
fill in ar5212ResetCalValid; reset the IQ valid flag on the channel
so IQ calibration will be started on the next periodic cal
Diffstat (limited to 'sys/dev/ath')
-rw-r--r--sys/dev/ath/ath_hal/ar5212/ar5212_reset.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c b/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
index d494998..936e084 100644
--- a/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
+++ b/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
@@ -1089,7 +1089,16 @@ ar5212PerCalibration(struct ath_hal *ah, struct ieee80211_channel *chan,
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;
}
OpenPOWER on IntegriCloud