Skip to content

Instantly share code, notes, and snippets.

@vejeta
Last active January 24, 2025 23:50
Show Gist options
  • Select an option

  • Save vejeta/3695205352a26f10281313e05314e097 to your computer and use it in GitHub Desktop.

Select an option

Save vejeta/3695205352a26f10281313e05314e097 to your computer and use it in GitHub Desktop.
Tentative fix for rtl8192eu driver for Linux Kernel 6.13.x in Debian
From b9f21a6ff209edc220b2fc4ca610eb54595f218d Mon Sep 17 00:00:00 2001
From: Franz Eitzinger <[email protected]>
Date: Mon, 2 Dec 2024 22:51:54 +0100
Subject: [PATCH] Adapt to Kernel 6.13.0
Pass net_device to .set_monitor_channel
---
os_dep/linux/ioctl_cfg80211.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c
index c1c75ba..5078cbe 100644
--- a/os_dep/linux/ioctl_cfg80211.c
+++ b/os_dep/linux/ioctl_cfg80211.c
@@ -6000,7 +6000,10 @@ static int cfg80211_rtw_set_channel(struct wiphy *wiphy
}
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
@vejeta
Copy link
Author

vejeta commented Jan 24, 2025

The original patch comes from:
https://patch-diff.githubusercontent.com/raw/Mange/rtl8192eu-linux-driver/pull/345.patch
Mange/rtl8192eu-linux-driver#345

The fix for Debian is applying this patch:
https://gist.github.com/vejeta/3695205352a26f10281313e05314e097
by copying it to: /usr/src/rtl8192eu-1.0/patches

and then modifying
/usr/src/rtl8192eu-1.0/dkms.conf
like:

PACKAGE_NAME="rtl8192eu"
PACKAGE_VERSION="1.0"
BUILT_MODULE_NAME[0]="8192eu"
DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless/"
AUTOINSTALL="yes"
MAKE[0]="'make' -j$(nproc) all KVER=${kernelver}"
CLEAN="make clean"
PATCH[0]=rtl8192eu-1.0.patch
PATCH[1]=rtl8192eu-fix-linux-6.13.0.patch
PATCH_MATCH[1]="^(6\.13\.[0-9])"
``

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