kernel: fix wrong line for the +@DRIVER_WEXT_SUPPORT dependency in kmod-net-zd1201
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 553-ath9k-configure-RF-channel-frequency-for-AR9330.patch
1 --- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
2 +++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
3 @@ -75,7 +75,19 @@ static int ar9003_hw_set_channel(struct
4 freq = centers.synth_center;
5
6 if (freq < 4800) { /* 2 GHz, fractional mode */
7 - if (AR_SREV_9485(ah)) {
8 + if (AR_SREV_9330(ah)) {
9 + u32 chan_frac;
10 + u32 div;
11 +
12 + if (ah->is_clk_25mhz)
13 + div = 75;
14 + else
15 + div = 120;
16 +
17 + channelSel = (freq * 4) / div;
18 + chan_frac = (((freq * 4) % div) * 0x20000) / div;
19 + channelSel = (channelSel << 17) | chan_frac;
20 + } else if (AR_SREV_9485(ah)) {
21 u32 chan_frac;
22
23 /*