mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Bring over the same fix from the AR5416 PDADC calibration code.
The ath9k driver has a unified boundary/pdadc function, whereas ours is split into two (one for each EEPROM type.) This is why the AR9280 check is done here where we could safely assume it'll always be AR9280 or later.
This commit is contained in:
parent
9ec9578e01
commit
d2699f71b4
1 changed files with 4 additions and 1 deletions
|
|
@ -727,7 +727,10 @@ ar9285GetGainBoundariesAndPdadcs(struct ath_hal *ah,
|
|||
|
||||
/* Find starting index for this pdGain */
|
||||
if (i == 0) {
|
||||
ss = 0; /* for the first pdGain, start from index 0 */
|
||||
if (AR_SREV_MERLIN_20_OR_LATER(ah))
|
||||
ss = (int16_t)(0 - (minPwrT4[i] / 2));
|
||||
else
|
||||
ss = 0; /* for the first pdGain, start from index 0 */
|
||||
} else {
|
||||
/* need overlap entries extrapolated below. */
|
||||
ss = (int16_t)((pPdGainBoundaries[i-1] - (minPwrT4[i] / 2)) - tPdGainOverlap + 1 + minDelta);
|
||||
|
|
|
|||
Loading…
Reference in a new issue