Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255886
b: refs/heads/master
c: 5acb4b9
h: refs/heads/master
v: v3
  • Loading branch information
Gabor Juhos authored and John W. Linville committed Jun 22, 2011
1 parent 72d7a9f commit aee20fd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dbb204e39fec2dc4800f19eae321ad7e1b95f2fa
refs/heads/master: 5acb4b9366b77d27f79706cb99b4d34e5076b953
14 changes: 13 additions & 1 deletion trunk/drivers/net/wireless/ath/ath9k/ar9003_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,19 @@ static int ar9003_hw_set_channel(struct ath_hw *ah, struct ath9k_channel *chan)
freq = centers.synth_center;

if (freq < 4800) { /* 2 GHz, fractional mode */
if (AR_SREV_9485(ah)) {
if (AR_SREV_9330(ah)) {
u32 chan_frac;
u32 div;

if (ah->is_clk_25mhz)
div = 75;
else
div = 120;

channelSel = (freq * 4) / div;
chan_frac = (((freq * 4) % div) * 0x20000) / div;
channelSel = (channelSel << 17) | chan_frac;
} else if (AR_SREV_9485(ah)) {
u32 chan_frac;

/*
Expand Down

0 comments on commit aee20fd

Please sign in to comment.