Comment out some stuff added after 2.4 kernel. 2.6.0 is just a guess, but should...
authormtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 22 Nov 2007 07:57:43 +0000 (07:57 +0000)
committermtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 22 Nov 2007 07:57:43 +0000 (07:57 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2927 0192ed92-7a03-0410-a25b-9323aeb14dbd

net80211/ieee80211_skb.c

index 990438f0d064b8428a0657f8602169f05324fe07..b15bd886451fbcecd023fc922cc81ff20ba1704a 100644 (file)
@@ -387,6 +387,7 @@ unref_skb(struct sk_buff *skb, int type,
                untrack_skb(skb, -1, func1, line1, func2, line2);
        }
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
        if ( (in_irq() || irqs_disabled()) 
             && (type == UNREF_USE_KFREE_SKB || type == UNREF_USE_DEV_KFREE_SKB)) 
        {
@@ -397,6 +398,7 @@ unref_skb(struct sk_buff *skb, int type,
                type = UNREF_USE_DEV_KFREE_SKB_ANY;
                dump_stack();
        }
+#endif
 
        switch (type) {
        case UNREF_USE_DEV_KFREE_SKB_ANY:
@@ -691,7 +693,9 @@ int dev_queue_xmit_debug(struct sk_buff *skb,
 struct sk_buff * skb_share_check_debug(struct sk_buff *skb, gfp_t pri,
                      const char *func, int line)
 {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
        might_sleep_if(pri & __GFP_WAIT);
+#endif
        if (skb_shared(skb)) {
                struct sk_buff *nskb = track_skb(
                        clean_clone_or_copy(skb_clone(skb, pri)), 
@@ -714,7 +718,9 @@ void  kfree_skb_fast_debug(struct sk_buff *skb,
 struct sk_buff *  skb_unshare_debug(struct sk_buff *skb, gfp_t pri,
                  const char *func, int line)
 {
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
        might_sleep_if(pri & __GFP_WAIT);
+#endif
        if (skb_cloned(skb)) {
                struct sk_buff *nskb = track_skb(
                        clean_clone_or_copy(skb_copy(skb, pri)), 0,