Skip to content

Instantly share code, notes, and snippets.

@vejeta
Created August 25, 2025 00:55
Show Gist options
  • Select an option

  • Save vejeta/359d955908ed0de06d002f3c31ab8640 to your computer and use it in GitHub Desktop.

Select an option

Save vejeta/359d955908ed0de06d002f3c31ab8640 to your computer and use it in GitHub Desktop.
Tentative fix for rtl8192-eu module for Linux 6.16.x
--- rtl8192eu-1.0/include/osdep_service_linux.h 2025-06-08 17:25:56.726822818 +0200
+++ b/include/osdep_service_linux.h 2025-08-25 02:46:08.747420075 +0200
@@ -360,7 +360,7 @@
#endif
{
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0))
- _timer *ptimer = from_timer(ptimer, in_timer, timer);
+ _timer *ptimer = timer_container_of(ptimer, in_timer, timer);
#else
_timer *ptimer = (_timer *)cntx;
#endif
@vejeta
Copy link
Author

vejeta commented Aug 25, 2025

The fix is applying this patch:
by copying it to: /usr/src/rtl8192eu-1.0/patches and
adding the file name "rtl8192eu-1.0-fix-linux-6.16.x.patch"
to line 7 and 8 in /usr/src/rtl8192eu-1.0/dkms.conf
like:

PATCH=(rtl8192eu-1.0-fix-linux-6.16.x.patch)
PATCH_MATCH="^(6.16.[0-9]+)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment