File: linux-3.6.patch

package info (click to toggle)
r8168 8.048.03-3
  • links: PTS, VCS
  • area: non-free
  • in suites: bullseye
  • size: 5,068 kB
  • sloc: ansic: 29,289; makefile: 137; sh: 81
file content (36 lines) | stat: -rw-r--r-- 1,335 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Author: Andreas Beckmann <anbe@debian.org>
Description: this was not changed in 3.6 but in 3.7

--- a/src/r8168_n.c
+++ b/src/r8168_n.c
@@ -6207,7 +6207,7 @@ static int rtl_nway_reset(struct net_dev
         return ret;
 }
 
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)
 static int
 rtl_ethtool_get_eee(struct net_device *net, struct ethtool_eee *eee)
 {
@@ -6294,7 +6294,7 @@ rtl_ethtool_set_eee(struct net_device *n
 
         return 0;
 }
-#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) */
+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0) */
 
 #if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,22)
 static const struct ethtool_ops rtl8168_ethtool_ops = {
@@ -6342,10 +6342,10 @@ static const struct ethtool_ops rtl8168_
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
         .get_ts_info        = ethtool_op_get_ts_info,
 #endif //LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)
         .get_eee = rtl_ethtool_get_eee,
         .set_eee = rtl_ethtool_set_eee,
-#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) */
+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0) */
         .nway_reset = rtl_nway_reset,
 };
 #endif //LINUX_VERSION_CODE > KERNEL_VERSION(2,4,22)