Skip to content
Snippets Groups Projects
Commit 877797c6 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

ath9k: fix 5 ghz frequency selection on ar934x devices with 25 mhz refclock

SVN-Revision: 32705
parent 00f1b1d6
No related branches found
No related tags found
No related merge requests found
--- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
@@ -117,8 +117,8 @@ static int ar9003_hw_set_channel(struct
ah->is_clk_25mhz) {
u32 chan_frac;
- channelSel = (freq * 2) / 75;
- chan_frac = (((freq * 2) % 75) * 0x20000) / 75;
+ channelSel = freq / 75;
+ chan_frac = ((freq % 75) * 0x20000) / 75;
channelSel = (channelSel << 17) | chan_frac;
} else {
channelSel = CHANSEL_5G(freq);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment