• Felix Fietkau's avatar
    ath9k_hw: Fix signal strength / channel noise reporting · b7c0c238
    Felix Fietkau authored
    While AR_PHY_CCA_NOM_VAL_* does contain the expected internal noise floor
    for a chip measured in clean air, it refers to the lowest expected reading.
    
    Depending on the frequency, this measurement can vary by about 6db, thus
    causing a higher reported channel noise and signal strength.
    
    Factor in the 6db offset when converting internal noisefloor to channel noise.
    
    This patch makes the reported values more accurate for all chips without
    affecting NF calibration behavior.
    Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
    Cc: stable@vger.kernel.org
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    b7c0c238
calib.h 3.38 KB