@@ -87,6 +87,7 @@ CPTCFG_PCMCIA_HERMES=m
CPTCFG_PCMCIA_SPECTRUM=m
CPTCFG_PLX_HERMES=m
CPTCFG_QTNFMAC_PCIE=m
+CPTCFG_R8188EU=m
CPTCFG_RSI_91X=m
CPTCFG_RT2400PCI=m
CPTCFG_RT2500PCI=m
@@ -126,6 +126,7 @@ drivers/net/usb/usbnet.c
drivers/staging/Makefile
drivers/staging/Kconfig
+drivers/staging/r8188eu/
drivers/staging/rtl8723bs/
drivers/usb/class/Makefile
new file mode 100644
@@ -0,0 +1,12 @@
+Needed for kernel <= 5.7
+
+--- a/drivers/staging/r8188eu/core/rtw_security.c
++++ b/drivers/staging/r8188eu/core/rtw_security.c
+@@ -7,6 +7,7 @@
+ #include "../include/drv_types.h"
+ #include "../include/wifi.h"
+ #include "../include/osdep_intf.h"
++#include <linux/crc32.h>
+
+ /* WEP related ===== */
+
new file mode 100644
@@ -0,0 +1,18 @@
+--- a/drivers/staging/r8188eu/os_dep/os_intfs.c
++++ b/drivers/staging/r8188eu/os_dep/os_intfs.c
+@@ -635,7 +635,15 @@ static unsigned int rtw_classify8021d(st
+ return dscp >> 5;
+ }
+
++#if LINUX_VERSION_IS_GEQ(5,2,0)
+ static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb, struct net_device *sb_dev)
++#elif LINUX_VERSION_IS_GEQ(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, void *accel_priv,
++ select_queue_fallback_t fallback)
++#endif
+ {
+ struct adapter *padapter = rtw_netdev_priv(dev);
+ struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
This driver replaces the rtl8188eu driver which was removed upstream. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> --- backport/defconfigs/wifi | 1 + copy-list | 1 + .../0013-fix-makefile-includes/r8188eu.patch | 12 ++++++++++++ patches/0028-select_queue/r8188eu.patch | 18 ++++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 patches/0013-fix-makefile-includes/r8188eu.patch create mode 100644 patches/0028-select_queue/r8188eu.patch