mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-29 17:35:10 +02:00
58b587ee61
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27562 3c298f89-4303-0410-b956-a3cf2f4a3e73
17 lines
379 B
Diff
17 lines
379 B
Diff
--- a/drivers/net/wireless/ath/ath9k/hw.c
|
|
+++ b/drivers/net/wireless/ath/ath9k/hw.c
|
|
@@ -100,6 +100,13 @@ static void ath9k_hw_set_clockrate(struc
|
|
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;
|
|
}
|
|
|