• Felix Fietkau's avatar
    ath9k_hw: fix PA predistortion miscalibration · 9c8426fc
    Felix Fietkau authored
    If any bins from the training data are skipped (i != max_index), the
    calculated compensation curve gets distorted, and the signal will be
    wildly overamplified. This may be the cause of the reported hardware
    damage that was caused by PA predistortion (because of which PAPRD was
    disabled by default).
    
    When calculating the x_est, Y, theta values, the use of max_index and i
    was reversed. i points to the bin index whereas max_index refers to the
    index of the calculated arrays.
    
    Note that PA predistortion is still disabled, it will be re-enabled
    after it has been properly validated.
    Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    9c8426fc
ar9003_paprd.c 27.8 KB