• Rajkumar Manoharan's avatar
    ath9k_hw: Fix instable target power control b/w CCK/OFDM · d88525e8
    Rajkumar Manoharan authored
    The problem is that when the attenuation is increased,
    the rate will start to drop from MCS7 -> MCS6, and finally
    will see MCS1 -> CCK_11Mbps. When the rate is changed b/w
    CCK and OFDM, it will use register desired_scale to calculate
    how much tx gain need to change.
    
    The output power with the same tx gain for CCK and OFDM modulated
    signals are different. This difference is constant for AR9280
    but not AR9285/AR9271. It has different PA architecture
    a constant. So it should be calibrated against this PA
    characteristic.
    
    The driver has to read the calibrated values from EEPROM and set
    the tx power registers accordingly.
    Signed-off-by: default avatarRajkumar Manoharan <rmanoharan@atheros.com>
    Acked-by: default avatarFelix Fietkau <nbd@openwrt.org>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    d88525e8
eeprom.h 20.1 KB