summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/543-ath9k_fix_mac_clock_div.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/mac80211/patches/543-ath9k_fix_mac_clock_div.patch')
-rw-r--r--package/mac80211/patches/543-ath9k_fix_mac_clock_div.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/mac80211/patches/543-ath9k_fix_mac_clock_div.patch b/package/mac80211/patches/543-ath9k_fix_mac_clock_div.patch
new file mode 100644
index 000000000..f76c54229
--- /dev/null
+++ b/package/mac80211/patches/543-ath9k_fix_mac_clock_div.patch
@@ -0,0 +1,16 @@
+--- 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;
+ }
+