• Ivo van Doorn's avatar
    rt2x00: Fix antenna diversity · b290d433
    Ivo van Doorn authored
    Fix 2 issues in antenna diversity selection.
    
    1) the following statement will always return true.
    	if ((rssi_curr - rssi_old) > -5 || (rssi_curr - rssi_old) < 5)
    It is cleaner to check if the absolute value is smaller then 5.
    
    2) Only enable software diversity when default antenna setup
    indicates support for it. Don't select it when the hardware
    does not indicate support for it...
    Signed-off-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    b290d433
rt2x00dev.c 35.5 KB