• Felix Fietkau's avatar
    ath9k_hw: fix OFDM weak signal detection handling · 0b81cc39
    Felix Fietkau authored
    Commit "ath9k_hw: improve ANI processing and rx desensitizing parameters"
    was unifying some code related to overriding OFDM weak signal detection,
    but seems to have gotten some of the original intent wrong, probably
    because of a misnamed variable.
    
    The beacon RSSI is only valid in station mode, and the main reason to check
    it in ath9k_hw_set_ofdm_nil is to make sure that OFDM weak signal detection
    stays enabled if the RSSI is low, even when the OFDM noise immunity entry
    is supposed to disable it.
    
    The above commit removed the mode checks and changed the code so that
    OFDM weak signal detection would only be changed if the rssi is high, which
    is wrong for everything but client mode.
    
    This patch restores the old behavior in a simplified form.
    Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    0b81cc39
ani.c 25.8 KB