aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/309-rt2x00-Uncomment-get_tsf-rt2800usb.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-02-08 10:22:43 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-02-08 10:22:43 +0000
commit6f1b4b4e437f4a26894df683f78753ce3f6820f5 (patch)
treec78ef4d3b3be4784f906f3d558b4da749b5df489 /package/mac80211/patches/309-rt2x00-Uncomment-get_tsf-rt2800usb.patch
parent64ba52d3a1339ad35e643b6cc36e3f8e1cf14caa (diff)
downloadupstream-6f1b4b4e437f4a26894df683f78753ce3f6820f5.tar.gz
upstream-6f1b4b4e437f4a26894df683f78753ce3f6820f5.tar.bz2
upstream-6f1b4b4e437f4a26894df683f78753ce3f6820f5.zip
mac80211: add rt2800 patches from the rt2x00 git rope
SVN-Revision: 14435
Diffstat (limited to 'package/mac80211/patches/309-rt2x00-Uncomment-get_tsf-rt2800usb.patch')
-rw-r--r--package/mac80211/patches/309-rt2x00-Uncomment-get_tsf-rt2800usb.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/package/mac80211/patches/309-rt2x00-Uncomment-get_tsf-rt2800usb.patch b/package/mac80211/patches/309-rt2x00-Uncomment-get_tsf-rt2800usb.patch
new file mode 100644
index 0000000000..da3e819af7
--- /dev/null
+++ b/package/mac80211/patches/309-rt2x00-Uncomment-get_tsf-rt2800usb.patch
@@ -0,0 +1,36 @@
+From 0779847f2c13b0170e4905138a61f7f98164a41e Mon Sep 17 00:00:00 2001
+From: Ivo van Doorn <IvDoorn@gmail.com>
+Date: Sat, 7 Feb 2009 15:22:52 +0100
+Subject: [PATCH] rt2x00: Uncomment get_tsf (rt2800usb)
+
+Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
+---
+ drivers/net/wireless/rt2x00/rt2800usb.c | 10 ----------
+ 1 files changed, 0 insertions(+), 10 deletions(-)
+
+--- a/drivers/net/wireless/rt2x00/rt2800usb.c
++++ b/drivers/net/wireless/rt2x00/rt2800usb.c
+@@ -2696,13 +2696,6 @@ static int rt2800usb_conf_tx(struct ieee
+ return 0;
+ }
+
+-#if 0
+-/*
+- * Mac80211 demands get_tsf must be atomic.
+- * This is not possible for rt2800usb since all register access
+- * functions require sleeping. Untill mac80211 no longer needs
+- * get_tsf to be atomic, this function should be disabled.
+- */
+ static u64 rt2800usb_get_tsf(struct ieee80211_hw *hw)
+ {
+ struct rt2x00_dev *rt2x00dev = hw->priv;
+@@ -2716,9 +2709,6 @@ static u64 rt2800usb_get_tsf(struct ieee
+
+ return tsf;
+ }
+-#else
+-#define rt2800usb_get_tsf NULL
+-#endif
+
+ static const struct ieee80211_ops rt2800usb_mac80211_ops = {
+ .tx = rt2x00mac_tx,