]>
Commit | Line | Data |
---|---|---|
36a50874 JR |
1 | diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c |
2 | index 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) |