madwifi: fix a rare ad-hoc mode crash
[openwrt/svn-archive/archive.git] / package / madwifi / patches / 401-changeset_r3602.patch
1 --- a/net80211/ieee80211_linux.h
2 +++ b/net80211/ieee80211_linux.h
3 @@ -348,6 +348,8 @@ typedef spinlock_t acl_lock_t;
4 /* __skb_append got a third parameter in 2.6.14 */
5 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
6 #define __skb_append(a,b,c) __skb_append(a, b)
7 +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)
8 +#define __skb_append(a,b,c) __skb_queue_after(c, a, b)
9 #endif
10
11 /*