Skip to content

Instantly share code, notes, and snippets.

@mleinart
mleinart / GobiNet-linux_3_19.diff
Last active March 13, 2020 21:49
Patch to GobiNet driver to support linux kernel >= 3.19
This is a patch to the GobiNet driver provided by Netgear
(http://www.downloads.netgear.com/files/aircard/Linux-Support-S2.13N2.25.zip) to support Kernel versions 3.19 and up
which deprecated the struct file->f_dentry api (https://lwn.net/Articles/206758/) as well as to support kernel versions 4.7
and above which removed struct net_device->trans_start
You need this patch if you see either of these errors while compiling:
/usr/src/GobiNet/GobiUSBNet.c: In function ‘GobiUSBNetStartXmit’:
/usr/src/GobiNet/GobiUSBNet.c:1201:8: error: ‘struct net_device’ has no member named ‘trans_start’; did you mean ‘mem_start’?
pNet->trans_start = jiffies;