• F
    ath9k_hw: clean up per-channel calibration data · 20bd2a09
    Felix Fietkau 提交于
    The noise floor history buffer is currently not kept per channel, which
    can lead to problems when changing channels from a clean channel to a
    noisy one. Also when switching from HT20 to HT40, the noise floor
    history buffer is full of measurements, but none of them contain data
    for the extension channel, which it needs quite a bit of time to recover
    from.
    
    This patch puts all the per-channel calibration data into a single data
    structure, and gives the the driver control over whether that is used
    per-channel or even not used for some channels.
    
    For ath9k_htc, I decided to keep this per-channel in order to avoid
    creating regressions.
    
    For ath9k, the data is kept only for the operating channel, which saves
    some space. ath9k_hw takes care of wiping old data when the operating
    channel or its channel flags change.
    Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
    Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
    20bd2a09
main.c 51.5 KB