Skip to content

Commit

Permalink
Updated for 2017.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lelegard committed Dec 4, 2017
1 parent 56dfad4 commit aa263f2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build-dektec-dkms
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ INSTALL=false
export KEEP=false
PREPARE_ONLY=false
UNINSTALL=false
URL="http://www.dektec.com/products/SDK/DTAPI/Downloads/LatestLinuxSDK"
URL="https://www.dektec.com/products/SDK/DTAPI/Downloads/LatestLinuxSDK"
VERBOSE=false
PATCH_OPTION="--silent"

Expand Down
12 changes: 12 additions & 0 deletions patches/dektec-dkms-2017.11.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -Naur dektec-dkms-2017.11.0/dektec-2017.11.0/Drivers/DtaNw/Source/Linux/DtaNwIal.c dektec-dkms-2017.11.0.fixed/dektec-2017.11.0/Drivers/DtaNw/Source/Linux/DtaNwIal.c
--- dektec-dkms-2017.11.0/dektec-2017.11.0/Drivers/DtaNw/Source/Linux/DtaNwIal.c 2017-12-05 18:37:44.589382027 +0100
+++ dektec-dkms-2017.11.0.fixed/dektec-2017.11.0/Drivers/DtaNw/Source/Linux/DtaNwIal.c 2017-12-05 18:39:50.652382027 +0100
@@ -291,7 +291,7 @@
pDvcData->m_IalData.m_NetStats.tx_errors++;
return 1;
}
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0)
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0)) || (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0))
pDevice->trans_start = jiffies;
#else
netif_trans_update(pDevice);

0 comments on commit aa263f2

Please sign in to comment.