File kernel68.patch of Package rtl8852au

diff -U 3 -H -d -r -N -- a/include/drv_conf.h b/include/drv_conf.h
--- a/include/drv_conf.h	2024-03-04 19:44:53.811983835 +0100
+++ b/include/drv_conf.h	2024-03-04 20:07:52.246638436 +0100
@@ -638,8 +638,4 @@
 #define RTW_AMSDU_MODE 0 /* 0:non-SPP, 1:spp mode, 2:All drop */
 #endif
 
-#if !defined(strlcpy)
-#define strlcpy(a, b, c) strscpy(a, b, c)
-#endif
-
 #endif /* __DRV_CONF_H__ */
diff -U 3 -H -d -r -N -- a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c
--- a/os_dep/linux/os_intfs.c	2023-08-19 19:32:21.906354463 +0200
+++ b/os_dep/linux/os_intfs.c	2024-03-04 20:10:37.891590842 +0100
@@ -16,6 +16,10 @@
 
 #include <drv_types.h>
 
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0))
+#define strlcpy(a, b, c) strscpy(a, b, c)
+#endif
+
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("Realtek Wireless Lan Driver");
 MODULE_AUTHOR("Realtek Semiconductor Corp.");
openSUSE Build Service is sponsored by