提交 d4fe5afa 编写于 作者: V Vivek Natarajan 提交者: John W. Linville

ath9k: Fix ref power interpolation logic for AR9287 chipsets.

Signed-off-by: NVivek Natarajan <vnatarajan@atheros.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 08fc5c1b
...@@ -374,7 +374,6 @@ static void ar9287_eeprom_get_tx_gain_index(struct ath_hw *ah, ...@@ -374,7 +374,6 @@ static void ar9287_eeprom_get_tx_gain_index(struct ath_hw *ah,
u8 *pCalChans, u16 availPiers, u8 *pCalChans, u16 availPiers,
int8_t *pPwr) int8_t *pPwr)
{ {
u8 pcdac, i = 0;
u16 idxL = 0, idxR = 0, numPiers; u16 idxL = 0, idxR = 0, numPiers;
bool match; bool match;
struct chan_centers centers; struct chan_centers centers;
...@@ -392,17 +391,12 @@ static void ar9287_eeprom_get_tx_gain_index(struct ath_hw *ah, ...@@ -392,17 +391,12 @@ static void ar9287_eeprom_get_tx_gain_index(struct ath_hw *ah,
&idxL, &idxR); &idxL, &idxR);
if (match) { if (match) {
pcdac = pRawDatasetOpLoop[idxL].pcdac[0][0]; *pPwr = (int8_t) pRawDatasetOpLoop[idxL].pwrPdg[0][0];
*pPwr = pRawDatasetOpLoop[idxL].pwrPdg[0][0];
} else { } else {
pcdac = pRawDatasetOpLoop[idxR].pcdac[0][0]; *pPwr = ((int8_t) pRawDatasetOpLoop[idxL].pwrPdg[0][0] +
*pPwr = (pRawDatasetOpLoop[idxL].pwrPdg[0][0] + (int8_t) pRawDatasetOpLoop[idxR].pwrPdg[0][0])/2;
pRawDatasetOpLoop[idxR].pwrPdg[0][0])/2;
} }
while ((pcdac > ah->originalGain[i]) &&
(i < (AR9280_TX_GAIN_TABLE_SIZE - 1)))
i++;
} }
static void ar9287_eeprom_olpc_set_pdadcs(struct ath_hw *ah, static void ar9287_eeprom_olpc_set_pdadcs(struct ath_hw *ah,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册