projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e115b7e
)
ath9k_hw: set the PHY mode for half/quarter channels on AR9003
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 19 Apr 2012 19:18:24 +0000
(21:18 +0200)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 23 Apr 2012 19:35:31 +0000
(15:35 -0400)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_phy.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/ar9003_phy.c
b/drivers/net/wireless/ath/ath9k/ar9003_phy.c
index bbda25f4e9f0daeed3c91dccce76d7f148ac7ca6..be6069bc48319b747a03bc5fce841fe509fe5df0 100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/ar9003_phy.c
+++ b/
drivers/net/wireless/ath/ath9k/ar9003_phy.c
@@
-723,6
+723,10
@@
static void ar9003_hw_set_rfmode(struct ath_hw *ah,
if (IS_CHAN_A_FAST_CLOCK(ah, chan))
rfMode |= (AR_PHY_MODE_DYNAMIC | AR_PHY_MODE_DYN_CCK_DISABLE);
+ if (IS_CHAN_QUARTER_RATE(chan))
+ rfMode |= AR_PHY_MODE_QUARTER;
+ if (IS_CHAN_HALF_RATE(chan))
+ rfMode |= AR_PHY_MODE_HALF;
REG_WRITE(ah, AR_PHY_MODE, rfMode);
}