Add rtl8192eu rtl8812au rtl8814au Wifi drivers.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-connectivity / realtek / rtl8814au / 0002-add-linux-4.19-support.patch
1 --- a/os_dep/linux/os_intfs.c   2018-10-23 20:30:24.385451383 +0200
2 +++ b/os_dep/linux/os_intfs.c   2018-10-23 20:35:14.283225781 +0200
3 @@ -786,16 +786,20 @@
4  \r
5         return dscp >> 5;\r
6  }\r
7 -\r
8\r
9 +#if (LINUX_VERSION_CODE>=KERNEL_VERSION(4,19,0))\r
10 +static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb,\r
11 +                               struct net_device *sb_dev,\r
12 +                               select_queue_fallback_t fallback\r
13 +#else\r
14  static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb\r
15 -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0)     \r
16 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0)\r
17                                 , void *accel_priv\r
18 -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0) \r
19 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 14, 0)\r
20                                 , select_queue_fallback_t fallback\r
21  #endif\r
22  \r
23  #endif\r
24 +#endif\r
25  )\r
26  {\r
27         _adapter        *padapter = rtw_netdev_priv(dev);\r