Deleted Added
full compact
ar9160_attach.c (203159) ar9160_attach.c (203882)
1/*
2 * Copyright (c) 2008 Sam Leffler, Errno Consulting
3 * Copyright (c) 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) 2008 Sam Leffler, Errno Consulting
3 * Copyright (c) 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/ar5416/ar9160_attach.c 203159 2010-01-29 10:10:14Z rpaulo $
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5416/ar9160_attach.c 203882 2010-02-14 16:26:32Z rpaulo $
18 */
19#include "opt_ah.h"
20
21#include "ah.h"
22#include "ah_internal.h"
23#include "ah_devid.h"
24
25#include "ar5416/ar5416.h"

--- 218 unchanged lines hidden (view full) ---

244 * starting from griffin. Set here to make sure that
245 * AR_MISC_MODE_MIC_NEW_LOC_ENABLE is set before a GTK is
246 * placed into hardware.
247 */
248 if (ahp->ah_miscMode != 0)
249 OS_REG_WRITE(ah, AR_MISC_MODE, ahp->ah_miscMode);
250
251 ar9160AniSetup(ah); /* Anti Noise Immunity */
18 */
19#include "opt_ah.h"
20
21#include "ah.h"
22#include "ah_internal.h"
23#include "ah_devid.h"
24
25#include "ar5416/ar5416.h"

--- 218 unchanged lines hidden (view full) ---

244 * starting from griffin. Set here to make sure that
245 * AR_MISC_MODE_MIC_NEW_LOC_ENABLE is set before a GTK is
246 * placed into hardware.
247 */
248 if (ahp->ah_miscMode != 0)
249 OS_REG_WRITE(ah, AR_MISC_MODE, ahp->ah_miscMode);
250
251 ar9160AniSetup(ah); /* Anti Noise Immunity */
252 ar5416InitNfHistBuff(ah, AH5416(ah)->ah_cal.nfCalHist);
252 ar5416InitNfHistBuff(AH5416(ah)->ah_cal.nfCalHist);
253
254 HALDEBUG(ah, HAL_DEBUG_ATTACH, "%s: return\n", __func__);
255
256 return ah;
257bad:
258 if (ahp)
259 ar5416Detach((struct ath_hal *) ahp);
260 if (status)

--- 33 unchanged lines hidden ---
253
254 HALDEBUG(ah, HAL_DEBUG_ATTACH, "%s: return\n", __func__);
255
256 return ah;
257bad:
258 if (ahp)
259 ar5416Detach((struct ath_hal *) ahp);
260 if (status)

--- 33 unchanged lines hidden ---