ar5212_reset.c (234450) | ar5212_reset.c (234774) |
---|---|
1/* 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2002-2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * | 1/* 2 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 3 * Copyright (c) 2002-2008 Atheros Communications, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 * |
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c 234450 2012-04-19 03:26:21Z adrian $ | 17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c 234774 2012-04-28 22:03:19Z adrian $ |
18 */ 19#include "opt_ah.h" 20 21#include "ah.h" 22#include "ah_internal.h" 23#include "ah_devid.h" 24 25#include "ar5212/ar5212.h" --- 164 unchanged lines hidden (view full) --- 190 * needed to be temporarily disabled until that time 191 * 192 * Need to save the sequence number to restore it after 193 * the reset! 194 */ 195 saveFrameSeqCount = OS_REG_READ(ah, AR_D_SEQNUM); 196 } else 197 saveFrameSeqCount = 0; /* NB: silence compiler */ | 18 */ 19#include "opt_ah.h" 20 21#include "ah.h" 22#include "ah_internal.h" 23#include "ah_devid.h" 24 25#include "ar5212/ar5212.h" --- 164 unchanged lines hidden (view full) --- 190 * needed to be temporarily disabled until that time 191 * 192 * Need to save the sequence number to restore it after 193 * the reset! 194 */ 195 saveFrameSeqCount = OS_REG_READ(ah, AR_D_SEQNUM); 196 } else 197 saveFrameSeqCount = 0; /* NB: silence compiler */ |
198 199 /* Blank the channel survey statistics */ 200 OS_MEMZERO(&ahp->ah_chansurvey, sizeof(ahp->ah_chansurvey)); |
|
198#if 0 199 /* 200 * XXX disable for now; this appears to sometimes cause OFDM 201 * XXX timing error floods when ani is enabled and bg scanning 202 * XXX kicks in 203 */ 204 /* If the channel change is across the same mode - perform a fast channel change */ 205 if (IS_2413(ah) || IS_5413(ah)) { --- 2582 unchanged lines hidden --- | 201#if 0 202 /* 203 * XXX disable for now; this appears to sometimes cause OFDM 204 * XXX timing error floods when ani is enabled and bg scanning 205 * XXX kicks in 206 */ 207 /* If the channel change is across the same mode - perform a fast channel change */ 208 if (IS_2413(ah) || IS_5413(ah)) { --- 2582 unchanged lines hidden --- |