mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
don't adjust core clk conversions for 1/2 and 1/4 rate channels; the
mac runs at full speed so doing this breaks conversion for ifs parameters Submitted by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
a4b3c7a506
commit
9731c399d5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188865
@ -266,10 +266,6 @@ ath_hal_mac_clks(struct ath_hal *ah, u_int usecs)
|
||||
clks = usecs * CLOCK_RATE[ath_hal_chan2wmode(ah, c)];
|
||||
if (IEEE80211_IS_CHAN_HT40(c))
|
||||
clks <<= 1;
|
||||
else if (IEEE80211_IS_CHAN_HALF(c))
|
||||
clks >>= 1;
|
||||
else if (IEEE80211_IS_CHAN_QUARTER(c))
|
||||
clks >>= 2;
|
||||
} else
|
||||
clks = usecs * CLOCK_RATE[WIRELESS_MODE_11b];
|
||||
return clks;
|
||||
@ -286,10 +282,6 @@ ath_hal_mac_usec(struct ath_hal *ah, u_int clks)
|
||||
usec = clks / CLOCK_RATE[ath_hal_chan2wmode(ah, c)];
|
||||
if (IEEE80211_IS_CHAN_HT40(c))
|
||||
usec >>= 1;
|
||||
else if (IEEE80211_IS_CHAN_HALF(c))
|
||||
usec <<= 1;
|
||||
else if (IEEE80211_IS_CHAN_QUARTER(c))
|
||||
usec <<= 2;
|
||||
} else
|
||||
usec = clks / CLOCK_RATE[WIRELESS_MODE_11b];
|
||||
return usec;
|
||||
|
Loading…
Reference in New Issue
Block a user