File kernel616.patch of Package rtl8852au

diff -Naur rtl8852bu/include/osdep_service_linux.h rtl8852bun/include/osdep_service_linux.h
--- rtl8852bu/include/osdep_service_linux.h	2025-05-22 12:41:50.000000000 +0200
+++ rtl8852bun/include/osdep_service_linux.h	2025-06-14 12:20:55.903799365 +0200
@@ -657,8 +6576,12 @@
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
 static inline void timer_hdl(struct timer_list *in_timer)
 {
+	#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 16, 0))
+	_timer *ptimer = timer_container_of(ptimer, in_timer, timer);
+	#else
 	_timer *ptimer = from_timer(ptimer, in_timer, timer);
-
+	#endif
+	
 	ptimer->function(ptimer->arg);
 }
 #else
openSUSE Build Service is sponsored by