File: linux-3.5.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 (17 lines) | stat: -rw-r--r-- 618 bytes parent folder | download | duplicates (2)
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))