kernel: fix wrong line for the +@DRIVER_WEXT_SUPPORT dependency in kmod-net-zd1201
[openwrt/svn-archive/archive.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);