• I
    rt2x00: Fix SW antenna diversity · 64abd803
    Ivo van Doorn 提交于
    Software antenna tuning is broken because of an function
    ordering problem during rt2x00link_tuner().
    
    rt2x00link_precalculate_signal()
    rt2x00leds_led_quality()
    rt2x00lib_antenna_diversity()
    
    rt2x00link_precalculate_signal() will reset the quality TX/RX counters,
    however rt2x00lib_antenna_diversity() requires the RX counter to
    see what RSSI value must be used for a particular antenna.
    We can't change the ordering since rt2x00lib_antenna_diversity() might
    reset other statistics which are needed by the function called earlier.
    
    Move the reset of the quality TX/RX counters into a seperate function
    and move the call to after rt2x00lib_antenna_diversity().
    Signed-off-by: NIvo van Doorn <IvDoorn@gmail.com>
    Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
    64abd803
rt2x00link.c 13.9 KB