Deleted Added
full compact
ar5112.c (223466) ar5112.c (225883)
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/ar5112.c 223466 2011-06-23 06:55:29Z adrian $
17 * $FreeBSD: head/sys/dev/ath/ath_hal/ar5212/ar5112.c 225883 2011-09-30 05:17:57Z adrian $
18 */
19#include "opt_ah.h"
20
21#include "ah.h"
22#include "ah_internal.h"
23
24#include "ah_eeprom_v3.h"
25

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

606static HAL_BOOL
607getFullPwrTable(uint16_t numPcdacs, uint16_t *pcdacs, int16_t *power, int16_t maxPower, int16_t *retVals)
608{
609 uint16_t ii;
610 uint16_t idxL = 0;
611 uint16_t idxR = 1;
612
613 if (numPcdacs < 2) {
18 */
19#include "opt_ah.h"
20
21#include "ah.h"
22#include "ah_internal.h"
23
24#include "ah_eeprom_v3.h"
25

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

606static HAL_BOOL
607getFullPwrTable(uint16_t numPcdacs, uint16_t *pcdacs, int16_t *power, int16_t maxPower, int16_t *retVals)
608{
609 uint16_t ii;
610 uint16_t idxL = 0;
611 uint16_t idxR = 1;
612
613 if (numPcdacs < 2) {
614 HALDEBUG_G(AH_NULL, HAL_DEBUG_ANY,
614 HALDEBUG(AH_NULL, HAL_DEBUG_ANY,
615 "%s: at least 2 pcdac values needed [%d]\n",
616 __func__, numPcdacs);
617 return AH_FALSE;
618 }
619 for (ii = 0; ii < 64; ii++) {
620 if (ii>pcdacs[idxR] && idxR < numPcdacs-1) {
621 idxL++;
622 idxR++;

--- 267 unchanged lines hidden ---
615 "%s: at least 2 pcdac values needed [%d]\n",
616 __func__, numPcdacs);
617 return AH_FALSE;
618 }
619 for (ii = 0; ii < 64; ii++) {
620 if (ii>pcdacs[idxR] && idxR < numPcdacs-1) {
621 idxL++;
622 idxR++;

--- 267 unchanged lines hidden ---