Package: r8168 / 8.048.03-3

linux-3.5.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: Andreas Beckmann <anbe@debian.org>
Description: MDIO_EEE_1000T and MDIO_EEE_100TX are not defined in some older kernels

--- a/src/r8168_n.c
+++ b/src/r8168_n.c
@@ -24459,7 +24459,11 @@ rtl8168_init_software_variable(struct ne
         dev->max_mtu = tp->max_jumbo_frame_size;
 #endif //LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)
         tp->eee_enabled = eee_enable;
+#ifdef MDIO_EEE_1000T
         tp->eee_adv_t = MDIO_EEE_1000T | MDIO_EEE_100TX;
+#else
+        tp->eee_adv_t = MDIO_AN_EEE_ADV_1000T | MDIO_AN_EEE_ADV_100TX;
+#endif
 
 #ifdef ENABLE_FIBER_SUPPORT
         if (HW_FIBER_MODE_ENABLED(tp))