Wrap use of input_dev in preprocessor conditionals. Went away in 2.6.20.
authormtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 22 Nov 2007 01:02:08 +0000 (01:02 +0000)
committermtaylor <mtaylor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 22 Nov 2007 01:02:08 +0000 (01:02 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2913 0192ed92-7a03-0410-a25b-9323aeb14dbd

net80211/ieee80211_skb.c

index d70f4caca6052896d35bbe6428914769515aef1a..31877f497e4dcf916790eae879a9f4af176a7edb 100644 (file)
@@ -131,12 +131,17 @@ static void skb_print_message(
 #else
        printk("%s: %s%s:%d %s\n",
 #endif
-               (skb->input_dev != NULL ? 
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20))
+               (skb->input_dev != NULL ? 
                        DEV_NAME(skb->input_dev) : 
                        DEV_NAME(skb->dev)),
+#else
+               DEV_NAME(skb->dev),
+#endif
+
                skb_count, 
 #ifdef IEEE80211_DEBUG_REFCNT
-               func1, line1,
+               func1, line1,
 #endif
                func2, line2,
                expanded_message);