mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-19 04:24:06 +02:00
08ec8f0d80
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32588 3c298f89-4303-0410-b956-a3cf2f4a3e73
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
From 5e08c36e3ef57712fee83248d0db3d2837e13f5f Mon Sep 17 00:00:00 2001
|
|
From: Gabor Juhos <juhosg@openwrt.org>
|
|
Date: Mon, 2 Jul 2012 17:15:58 +0200
|
|
Subject: [PATCH 14/20] ath9k: fix RF channel frequency configuration for AR9550
|
|
|
|
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
|
Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
|
|
---
|
|
drivers/net/wireless/ath/ath9k/ar9003_phy.c | 5 +++--
|
|
1 files changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
|
|
+++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
|
|
@@ -99,7 +99,7 @@ static int ar9003_hw_set_channel(struct
|
|
channelSel = (freq * 4) / 120;
|
|
chan_frac = (((freq * 4) % 120) * 0x20000) / 120;
|
|
channelSel = (channelSel << 17) | chan_frac;
|
|
- } else if (AR_SREV_9340(ah)) {
|
|
+ } else if (AR_SREV_9340(ah) || AR_SREV_9550(ah)) {
|
|
if (ah->is_clk_25mhz) {
|
|
u32 chan_frac;
|
|
|
|
@@ -113,7 +113,8 @@ static int ar9003_hw_set_channel(struct
|
|
/* Set to 2G mode */
|
|
bMode = 1;
|
|
} else {
|
|
- if (AR_SREV_9340(ah) && ah->is_clk_25mhz) {
|
|
+ if ((AR_SREV_9340(ah) || AR_SREV_9550(ah)) &&
|
|
+ ah->is_clk_25mhz) {
|
|
u32 chan_frac;
|
|
|
|
channelSel = (freq * 2) / 75;
|