aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/120-compat_rcu_dereference.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/mac80211/patches/120-compat_rcu_dereference.patch')
-rw-r--r--package/mac80211/patches/120-compat_rcu_dereference.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/mac80211/patches/120-compat_rcu_dereference.patch b/package/mac80211/patches/120-compat_rcu_dereference.patch
new file mode 100644
index 0000000000..3c90a28642
--- /dev/null
+++ b/package/mac80211/patches/120-compat_rcu_dereference.patch
@@ -0,0 +1,11 @@
+--- a/include/linux/compat-2.6.34.h
++++ b/include/linux/compat-2.6.34.h
+@@ -162,6 +162,8 @@ static inline void device_unlock(struct
+ .prod_id_hash = { 0, 0, (vh3), 0 }, }
+ #endif
+
++#define rcu_dereference_check(p, c) rcu_dereference(p)
++
+ #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,34)) */
+
+ #endif /* LINUX_26_34_COMPAT_H */