]> git.pld-linux.org Git - packages/rtl8812au.git/blame - linux-3.11.patch
- start fixing build with linux 4.12
[packages/rtl8812au.git] / linux-3.11.patch
CommitLineData
36a50874
JR
1diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c
2index ca56b4c..659305f 100644
3--- a/os_dep/linux/os_intfs.c
4+++ b/os_dep/linux/os_intfs.c
5@@ -660,7 +660,11 @@ u16 rtw_recv_select_queue(struct sk_buff *skb)
6
7 static int rtw_ndev_notifier_call(struct notifier_block * nb, unsigned long state, void *ndev)
8 {
9+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(3,11,0))
10+ struct net_device *dev = netdev_notifier_info_to_dev(ndev);
11+#else
12 struct net_device *dev = ndev;
13+#endif
14
15 #if (LINUX_VERSION_CODE>=KERNEL_VERSION(2,6,29))
16 if (!dev->netdev_ops || dev->netdev_ops->ndo_do_ioctl != rtw_ioctl)
This page took 0.051875 seconds and 4 git commands to generate.