Provide __skb_append() replacement for Linux 2.6.26
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 5 May 2008 01:41:23 +0000 (01:41 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Mon, 5 May 2008 01:41:23 +0000 (01:41 +0000)
__skb_append() will be removed in Linux 2.6.26.  __skb_queue_after()
should be used instead.  Use the new interface on Linux 2.6.25 and
newer.

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3602 0192ed92-7a03-0410-a25b-9323aeb14dbd

net80211/ieee80211_linux.h

index f6e349860edcfe023f8a3d8a19b999f8ceb44b8a..1b3cb89f6763ffe6a9dc2bfe483b953a1b2faf04 100644 (file)
@@ -318,6 +318,8 @@ typedef spinlock_t acl_lock_t;
 /* __skb_append got a third parameter in 2.6.14 */
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
 #define __skb_append(a,b,c)    __skb_append(a, b)
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)
+#define __skb_append(a,b,c)    __skb_queue_after(c, a, b)
 #endif
 
 /*