c21371fca042a3aacee8878828dadf1c094cd5b8
[openwrt.git] / package / mac80211 / patches / 552-ath9k-fix-channel-frequency-calculation-for-AR9340.patch
1 --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
2 +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
3 @@ -104,7 +104,7 @@ static int ar9003_hw_set_channel(struct
4 u32 chan_frac;
5
6 channelSel = (freq * 2) / 75;
7 - chan_frac = ((freq % 75) * 0x20000) / 75;
8 + chan_frac = (((freq * 2) % 75) * 0x20000) / 75;
9 channelSel = (channelSel << 17) | chan_frac;
10 } else {
11 channelSel = CHANSEL_5G(freq);
This page took 0.042355 seconds and 3 git commands to generate.