70 int32_t delta, currPDADC, slope;
76 __func__,
AH5416(ah)->initPDADC, currPDADC);
78 if (
AH5416(ah)->initPDADC == 0 || currPDADC == 0) {
93 delta = ((currPDADC -
AH5416(ah)->initPDADC)*4) / slope;
106 const struct ieee80211_channel *chan,
108 uint8_t *pCalChans, uint16_t availPiers, int8_t *pPwr)
110 uint16_t idxL = 0, idxR = 0, numPiers;
116 for (numPiers = 0; numPiers < availPiers; numPiers++) {
123 pCalChans, numPiers, &idxL, &idxR);
126 *pPwr = (int8_t) pRawDatasetOpLoop[idxL].pwrPdg[0][0];
128 *pPwr = ((int8_t) pRawDatasetOpLoop[idxL].pwrPdg[0][0] +
129 (int8_t) pRawDatasetOpLoop[idxR].
pwrPdg[0][0])/2;
143 tmpVal = tmpVal & 0xFCFFFFFF;
144 tmpVal = tmpVal | (0x3 << 24);
150 tmpVal = tmpVal & 0xFCFFFFFF;
151 tmpVal = tmpVal | (0x3 << 24);
158 tmpVal = tmpVal & 0xff00ffff;
160 tmpVal = tmpVal | (a << 16);
168 tmpVal = tmpVal & 0xff00ffff;
170 tmpVal = tmpVal | (a << 16);
HAL_BOOL ath_ee_getLowerUpperIndex(uint8_t target, uint8_t *pList, uint16_t listSize, uint16_t *indexL, uint16_t *indexR)
#define AR5416_BCHAN_UNUSED
#define OS_REG_SET_BIT(_a, _r, _f)
#define ath_hal_eepromGet(_ah, _param, _val)
#define OS_REG_RMW_FIELD(_a, _r, _f, _v)
#define HALDEBUG(_ah, __m,...)
#define OS_A_REG_RMW_FIELD(_a, _r, _f, _v)
#define OS_REG_WRITE(_ah, _reg, _val)
#define OS_REG_READ(_ah, _reg)
void ar5416GetChannelCenters(struct ath_hal *, const struct ieee80211_channel *chan, CHAN_CENTERS *centers)
#define AR_PHY_TX_PWRCTRL9_RES_DC_REMOVAL
#define AR_PHY_TX_PWRCTRL9
#define AR_PHY_TX_PWRCTRL4
#define AR_PHY_TX_PWRCTRL_PD_AVG_OUT
#define AR_PHY_CH0_TX_PWRCTRL11
#define AR_PHY_CH1_TX_PWRCTRL11
void ar9287olcGetTxGainIndex(struct ath_hal *ah, const struct ieee80211_channel *chan, struct cal_data_op_loop_ar9287 *pRawDatasetOpLoop, uint8_t *pCalChans, uint16_t availPiers, int8_t *pPwr)
void ar9287olcTemperatureCompensation(struct ath_hal *ah)
void ar9287olcSetPDADCs(struct ath_hal *ah, int32_t txPower, uint16_t chain)
void ar9287olcInit(struct ath_hal *ah)
#define AR9287_AN_TXPC0_TXPCMODE_TEMPSENSE
#define AR9287_AN_TXPC0_TXPCMODE
#define AR_PHY_TX_PWRCTRL_OLPC_TEMP_COMP