rtl8821cu: fix build on 4.19

This commit is contained in:
AmadeusGhost 2020-03-19 22:53:05 +08:00 committed by CN_SZTL
parent 366ee2cc84
commit e1c4e42327
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 24 additions and 1 deletions

View File

@ -16,4 +16,3 @@ index 6a065bf..6e1c6d0 100755
endif
####START RASPBERRY PI SUPPORT

View File

@ -0,0 +1,24 @@
diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c
index 660bacf..a73a664 100644
--- a/os_dep/linux/os_intfs.c
+++ b/os_dep/linux/os_intfs.c
@@ -1190,6 +1190,11 @@ unsigned int rtw_classify8021d(struct sk_buff *skb)
}
+#if (LINUX_VERSION_CODE>=KERNEL_VERSION(4,19,0))
+static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb,
+ struct net_device *sb_dev,
+ select_queue_fallback_t fallback)
+#else
static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0)
, void *accel_priv
@@ -1198,6 +1203,7 @@ static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb
#endif
#endif
)
+#endif
{
_adapter *padapter = rtw_netdev_priv(dev);
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;