projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a949b17
)
ath9k_hw: fix MAC clock for half/quarter rate
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 9 Jul 2011 04:12:48 +0000
(11:12 +0700)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 11 Jul 2011 19:02:12 +0000
(15:02 -0400)
Enabling half/quarter rate makes the MAC run at half/quarter clock speed.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/hw.c
b/drivers/net/wireless/ath/ath9k/hw.c
index a6bb9c4f8a8751e95e284a093e4fe881a7433a03..f69c62e36ed88bf493f2940c9c93a069db605612 100644
(file)
--- a/
drivers/net/wireless/ath/ath9k/hw.c
+++ b/
drivers/net/wireless/ath/ath9k/hw.c
@@
-99,6
+99,13
@@
static void ath9k_hw_set_clockrate(struct ath_hw *ah)
if (conf_is_ht40(conf))
clockrate *= 2;
+ if (ah->curchan) {
+ if (IS_CHAN_HALF_RATE(ah->curchan))
+ clockrate /= 2;
+ if (IS_CHAN_QUARTER_RATE(ah->curchan))
+ clockrate /= 4;
+ }
+
common->clockrate = clockrate;
}