• Lukáš Turek's avatar
    ath5k: Reimplement clock rate to usec conversion · 3578e6eb
    Lukáš Turek authored
    The original code was correct in 802.11a mode only, 802.11b/g uses
    different clock rates. The new code uses values taken from FreeBSD HAL
    and should be correct for all modes including turbo modes.
    
    The former rate calculation was used by slope coefficient calculation
    function ath5k_hw_write_ofdm_timings. However, this function requires
    the 802.11a values even in 802.11g mode. Thus the use of
    ath5k_hw_htoclock was replaced by hardcoded values. Possibly the slope
    coefficient calculation is not related to clock rate at all.
    Signed-off-by: default avatarLukas Turek <8an@praha12.net>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    3578e6eb
ath5k.h 45.2 KB