From 45d4cee226f7d9d867bae619bd8b1f8c3e8cd7f0 Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Sun, 3 Jul 2011 01:08:35 +0000
Subject: ath5k: disable the 32 khz sleep clock, atheros also does this, might
 improve stability

SVN-Revision: 27366
---
 .../patches/446-ath5k_disable_32khz_clock.patch        | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 package/mac80211/patches/446-ath5k_disable_32khz_clock.patch

(limited to 'package')

diff --git a/package/mac80211/patches/446-ath5k_disable_32khz_clock.patch b/package/mac80211/patches/446-ath5k_disable_32khz_clock.patch
new file mode 100644
index 0000000..21bf037
--- /dev/null
+++ b/package/mac80211/patches/446-ath5k_disable_32khz_clock.patch
@@ -0,0 +1,18 @@
+--- a/drivers/net/wireless/ath/ath5k/reset.c
++++ b/drivers/net/wireless/ath/ath5k/reset.c
+@@ -1287,15 +1287,6 @@ int ath5k_hw_reset(struct ath5k_hw *ah, 
+ 	 */
+ 	ath5k_hw_dma_init(ah);
+ 
+-
+-	/* Enable 32KHz clock function for AR5212+ chips
+-	 * Set clocks to 32KHz operation and use an
+-	 * external 32KHz crystal when sleeping if one
+-	 * exists */
+-	if (ah->ah_version == AR5K_AR5212 &&
+-	    op_mode != NL80211_IFTYPE_AP)
+-		ath5k_hw_set_sleep_clock(ah, true);
+-
+ 	/*
+ 	 * Disable beacons and reset the TSF
+ 	 */
-- 
cgit v1.1