summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/018-list_for_each_continue_backport.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-09-14 22:53:54 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-09-14 22:53:54 +0000
commite30b799cdce79c4fe33c8bd09d2f289baf788382 (patch)
tree0bfc5f31cc4ea54f7253c14f510eac831f1495d0 /package/mac80211/patches/018-list_for_each_continue_backport.patch
parent872d5928d93dcbb73d86a06bfe3981cbd3e35baf (diff)
mac80211: upgrade to wireless-testing 2010-09-14, replace the external carl9170 with the recently merged upstream version
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23061 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/018-list_for_each_continue_backport.patch')
-rw-r--r--package/mac80211/patches/018-list_for_each_continue_backport.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/mac80211/patches/018-list_for_each_continue_backport.patch b/package/mac80211/patches/018-list_for_each_continue_backport.patch
new file mode 100644
index 000000000..08f8eed02
--- /dev/null
+++ b/package/mac80211/patches/018-list_for_each_continue_backport.patch
@@ -0,0 +1,15 @@
+--- a/include/linux/compat-2.6.33.h
++++ b/include/linux/compat-2.6.33.h
+@@ -98,6 +98,12 @@ int pccard_loop_tuple(struct pcmcia_sock
+ #define kfifo_out(a, b, c) __kfifo_get(*a, b, c)
+ #define kfifo_len(a) __kfifo_len(*a)
+
++#define list_for_each_entry_continue_rcu(pos, head, member) \
++ for (pos = list_entry_rcu(pos->member.next, typeof(*pos), member); \
++ prefetch(pos->member.next), &pos->member != (head); \
++ pos = list_entry_rcu(pos->member.next, typeof(*pos), member))
++
++
+ #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)) */
+
+ #endif /* LINUX_26_33_COMPAT_H */