summaryrefslogtreecommitdiff
path: root/package/mac80211/patches/521-ath5k_common_clockrate.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-10-16 02:30:30 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-10-16 02:30:30 +0000
commitcbe6c66638efddd36b0bb71f46dd5f5689a3e045 (patch)
tree7fc287bd3cfab8f40a0baaf8e6d80aa0a530401d /package/mac80211/patches/521-ath5k_common_clockrate.patch
parentfdb67f01dfbe2d6c79f7433f55baef1786d74d0c (diff)
mac80211: update to wireless-testing 2010-10-15, add a few ath9k fixes and performance enhancements
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23470 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/521-ath5k_common_clockrate.patch')
-rw-r--r--package/mac80211/patches/521-ath5k_common_clockrate.patch65
1 files changed, 0 insertions, 65 deletions
diff --git a/package/mac80211/patches/521-ath5k_common_clockrate.patch b/package/mac80211/patches/521-ath5k_common_clockrate.patch
deleted file mode 100644
index 08c18342e7..0000000000
--- a/package/mac80211/patches/521-ath5k_common_clockrate.patch
+++ /dev/null
@@ -1,65 +0,0 @@
---- a/drivers/net/wireless/ath/ath5k/pcu.c
-+++ b/drivers/net/wireless/ath/ath5k/pcu.c
-@@ -207,7 +207,8 @@ static int ath5k_hw_set_cts_timeout(stru
- */
- unsigned int ath5k_hw_htoclock(struct ath5k_hw *ah, unsigned int usec)
- {
-- return usec * ath5k_hw_get_clockrate(ah);
-+ struct ath_common *common = ath5k_hw_common(ah);
-+ return usec * common->clockrate;
- }
-
- /**
-@@ -216,17 +217,19 @@ unsigned int ath5k_hw_htoclock(struct at
- */
- unsigned int ath5k_hw_clocktoh(struct ath5k_hw *ah, unsigned int clock)
- {
-- return clock / ath5k_hw_get_clockrate(ah);
-+ struct ath_common *common = ath5k_hw_common(ah);
-+ return clock / common->clockrate;
- }
-
- /**
-- * ath5k_hw_get_clockrate - Get the clock rate for current mode
-+ * ath5k_hw_set_clockrate - Set common->clockrate for the current channel
- *
- * @ah: The &struct ath5k_hw
- */
--unsigned int ath5k_hw_get_clockrate(struct ath5k_hw *ah)
-+void ath5k_hw_set_clockrate(struct ath5k_hw *ah)
- {
- struct ieee80211_channel *channel = ah->ah_current_channel;
-+ struct ath_common *common = ath5k_hw_common(ah);
- int clock;
-
- if (channel->hw_value & CHANNEL_5GHZ)
-@@ -240,7 +243,7 @@ unsigned int ath5k_hw_get_clockrate(stru
- if (channel->hw_value & CHANNEL_TURBO)
- clock *= 2;
-
-- return clock;
-+ common->clockrate = clock;
- }
-
- /**
---- a/drivers/net/wireless/ath/ath5k/ath5k.h
-+++ b/drivers/net/wireless/ath/ath5k/ath5k.h
-@@ -1201,7 +1201,7 @@ void ath5k_hw_set_ack_bitrate_high(struc
- /* Clock rate related functions */
- unsigned int ath5k_hw_htoclock(struct ath5k_hw *ah, unsigned int usec);
- unsigned int ath5k_hw_clocktoh(struct ath5k_hw *ah, unsigned int clock);
--unsigned int ath5k_hw_get_clockrate(struct ath5k_hw *ah);
-+void ath5k_hw_set_clockrate(struct ath5k_hw *ah);
-
- /* Queue Control Unit, DFS Control Unit Functions */
- int ath5k_hw_get_tx_queueprops(struct ath5k_hw *ah, int queue,
---- a/drivers/net/wireless/ath/ath5k/phy.c
-+++ b/drivers/net/wireless/ath/ath5k/phy.c
-@@ -1093,6 +1093,7 @@ int ath5k_hw_channel(struct ath5k_hw *ah
-
- ah->ah_current_channel = channel;
- ah->ah_turbo = channel->hw_value == CHANNEL_T ? true : false;
-+ ath5k_hw_set_clockrate(ah);
-
- return 0;
- }