File kernel613.patch of Package rtl8852au

diff -Naur rtl8852au/os_dep/linux/ioctl_cfg80211.c rtl8852aun/os_dep/linux/ioctl_cfg80211.c
--- rtl8852au/os_dep/linux/ioctl_cfg80211.c	2024-04-10 10:04:46.027657781 +0200
+++ rtl8852aun/os_dep/linux/ioctl_cfg80211.c	2024-12-29 18:40:49.041782953 +0100
@@ -6349,7 +6349,10 @@
 #endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0)) */
 
 static int cfg80211_rtw_set_monitor_channel(struct wiphy *wiphy
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0))
+	, struct net_device *dev
+	, struct cfg80211_chan_def *chandef
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 8, 0))
 	, struct cfg80211_chan_def *chandef
 #else
 	, struct ieee80211_channel *chan
diff -Naur rtl8852au/os_dep/osdep_service_linux.c rtl8852aun/os_dep/osdep_service_linux.c
--- rtl8852au/os_dep/osdep_service_linux.c	2023-08-30 09:14:17.228152999 +0200
+++ rtl8852aun/os_dep/osdep_service_linux.c	2024-12-30 10:20:48.499371466 +0100
@@ -388,10 +388,12 @@
 static int openFile(struct file **fpp, const char *path, int flag, int mode)
 {
 	struct file *fp;
-
+	
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 13, 0))
 #if defined(MODULE_IMPORT_NS)
 	MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
 #endif
+#endif
 
 	fp = filp_open(path, flag, mode);
 	if (IS_ERR(fp)) {
@@ -506,11 +508,13 @@
 	mm_segment_t oldfs;
 	#endif
 	char buf;
-
+	
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 13, 0))
 #if defined(MODULE_IMPORT_NS)
 	MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
 #endif
-
+#endif
+	
 	fp = filp_open(path, O_RDONLY, 0);
 	if (IS_ERR(fp))
 		ret = PTR_ERR(fp);
openSUSE Build Service is sponsored by