Deleted Added
full compact
ar9280_olc.c (219585) ar9280_olc.c (219586)
1/*
2 * Copyright (c) 2011 Adrian Chadd, Xenion Pty Ltd.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 *
1/*
2 * Copyright (c) 2011 Adrian Chadd, Xenion Pty Ltd.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23 * SUCH DAMAGE.
24 *
25 * $FreeBSD: head/sys/dev/ath/ath_hal/ar9002/ar9280_olc.c 219585 2011-03-13 05:30:14Z adrian $
25 * $FreeBSD: head/sys/dev/ath/ath_hal/ar9002/ar9280_olc.c 219586 2011-03-13 05:54:05Z adrian $
26 */
27#include "opt_ah.h"
28
29#include "ah.h"
30#include "ah_internal.h"
31
32#include "ah_eeprom_v14.h"
33

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

62 CHAN_CENTERS centers;
63
64 ar5416GetChannelCenters(ah, chan, &centers);
65
66 for (numPiers = 0; numPiers < availPiers; numPiers++)
67 if (calChans[numPiers] == AR5416_BCHAN_UNUSED)
68 break;
69
26 */
27#include "opt_ah.h"
28
29#include "ah.h"
30#include "ah_internal.h"
31
32#include "ah_eeprom_v14.h"
33

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

62 CHAN_CENTERS centers;
63
64 ar5416GetChannelCenters(ah, chan, &centers);
65
66 for (numPiers = 0; numPiers < availPiers; numPiers++)
67 if (calChans[numPiers] == AR5416_BCHAN_UNUSED)
68 break;
69
70 match = getLowerUpperIndex((uint8_t)FREQ2FBIN(centers.synth_center,
70 match = ath_ee_getLowerUpperIndex((uint8_t)FREQ2FBIN(centers.synth_center,
71 IEEE80211_IS_CHAN_2GHZ(chan)), calChans, numPiers,
72 &idxL, &idxR);
73 if (match) {
74 pcdac = rawDatasetOpLoop[idxL].pcdac[0][0];
75 *pwr = rawDatasetOpLoop[idxL].pwrPdg[0][0];
76 } else {
77 pcdac = rawDatasetOpLoop[idxR].pcdac[0][0];
78 *pwr = (rawDatasetOpLoop[idxL].pwrPdg[0][0] +

--- 321 unchanged lines hidden ---
71 IEEE80211_IS_CHAN_2GHZ(chan)), calChans, numPiers,
72 &idxL, &idxR);
73 if (match) {
74 pcdac = rawDatasetOpLoop[idxL].pcdac[0][0];
75 *pwr = rawDatasetOpLoop[idxL].pwrPdg[0][0];
76 } else {
77 pcdac = rawDatasetOpLoop[idxR].pcdac[0][0];
78 *pwr = (rawDatasetOpLoop[idxL].pwrPdg[0][0] +

--- 321 unchanged lines hidden ---