File kernel616.patch of Package rtl8188eu
diff -Naur rtl8188eu/core/rtw_led.c rtl8188eun/core/rtw_led.c
--- rtl8188eu/core/rtw_led.c 2021-02-11 14:38:00.000000000 +0100
+++ rtl8188eun/core/rtw_led.c 2025-07-10 18:22:46.117317654 +0200
@@ -21,6 +21,10 @@
#include <drv_types.h>
#include "rtw_led.h"
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,16,0)
+#define from_timer timer_container_of
+#endif
+
/* */
/* Description: */
/* Callback function of LED BlinkTimer, */
diff -Naur rtl8188eu/core/rtw_p2p.c rtl8188eun/core/rtw_p2p.c
--- rtl8188eu/core/rtw_p2p.c 2021-02-11 14:38:00.000000000 +0100
+++ rtl8188eun/core/rtw_p2p.c 2025-07-10 18:21:35.661336879 +0200
@@ -25,6 +25,10 @@
#ifdef CONFIG_88EU_P2P
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,16,0)
+#define from_timer timer_container_of
+#endif
+
static int rtw_p2p_is_channel_list_ok(u8 desired_ch, u8 *ch_list, u8 ch_cnt)
{
int found = 0, i = 0;
diff -Naur rtl8188eu/core/rtw_pwrctrl.c rtl8188eun/core/rtw_pwrctrl.c
--- rtl8188eu/core/rtw_pwrctrl.c 2021-02-11 14:38:00.000000000 +0100
+++ rtl8188eun/core/rtw_pwrctrl.c 2025-07-10 18:20:28.089352229 +0200
@@ -24,6 +24,10 @@
#include <osdep_intf.h>
#include <linux/usb.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,16,0)
+#define from_timer timer_container_of
+#endif
+
void ips_enter(struct adapter *padapter)
{
struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv;
diff -Naur rtl8188eu/core/rtw_recv.c rtl8188eun/core/rtw_recv.c
--- rtl8188eu/core/rtw_recv.c 2021-02-11 14:38:00.000000000 +0100
+++ rtl8188eun/core/rtw_recv.c 2025-07-10 18:22:08.573328720 +0200
@@ -29,6 +29,10 @@
#include <usb_ops.h>
#include <wifi.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,16,0)
+#define from_timer timer_container_of
+#endif
+
static u8 SNAP_ETH_TYPE_IPX[2] = {0x81, 0x37};
static u8 SNAP_ETH_TYPE_APPLETALK_AARP[2] = {0x80, 0xf3};
diff -Naur rtl8188eu/os_dep/mlme_linux.c rtl8188eun/os_dep/mlme_linux.c
--- rtl8188eu/os_dep/mlme_linux.c 2021-02-11 14:38:00.000000000 +0100
+++ rtl8188eun/os_dep/mlme_linux.c 2025-07-10 18:26:08.437256959 +0200
@@ -24,6 +24,10 @@
#include <drv_types.h>
#include <mlme_osdep.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,16,0)
+#define from_timer timer_container_of
+#endif
+
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0)
void rtw_join_timeout_handler (void *FunctionContext)
#else
diff -Naur rtl8188eu/os_dep/recv_linux.c rtl8188eun/os_dep/recv_linux.c
--- rtl8188eu/os_dep/recv_linux.c 2021-02-11 14:38:00.000000000 +0100
+++ rtl8188eun/os_dep/recv_linux.c 2025-07-10 18:26:46.057246650 +0200
@@ -29,6 +29,10 @@
#include <ethernet.h>
#include <usb_ops.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,16,0)
+#define from_timer timer_container_of
+#endif
+
/* init os related resource in struct recv_priv */
int rtw_os_recv_resource_init(struct recv_priv *precvpriv,
struct adapter *padapter)