arn9287.c | 298 /* Shift the PDADC table to start at the new offset. */ 418 /* Write PDADC values. */ 560 int8_t pdadc, slope, tcomp; local in function:ar9287_olpc_temp_compensation 564 pdadc = MS(reg, AR_PHY_TX_PWRCTRL_PD_AVG_OUT); 565 DPRINTFN(DBG_RF, sc, "PD Avg Out=%d\n", pdadc); 567 if (sc->sc_pdadc == 0 || pdadc == 0) 576 tcomp = ((pdadc - sc->sc_pdadc) * 4) / slope;
|