mirror of
https://github.com/morrownr/8812au-20210820.git
synced 2026-10-14 21:38:30 +00:00
[GH-ISSUE #69] [Bug]: #58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @arnieSkyNet on GitHub (Aug 7, 2026).
Original GitHub issue: https://github.com/morrownr/8812au-20210820/issues/69
Checklist
Is Secure Boot enabled?
No response
uname
Linux flo64 6.12.101+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.101-1 (2026-08-05) x86_64 GNU/Linux
lsusb
sudo lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 08bb:2902 Texas Instruments PCM2902 Audio Codec Bus 001 Device 003: ID 10d7:b012 Actions general adapter Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. Hub Bus 001 Device 005: ID 047d:1020 Kensington Expert Mouse Trackball Bus 001 Device 006: ID 046d:0994 Logitech, Inc. QuickCam Orbit/Sphere AF Bus 001 Device 007: ID 04a9:220d Canon, Inc. CanoScan N670U/N676U/LiDE 20 Bus 001 Device 008: ID 2357:0101 TP-Link RTL8812AU Archer T4U 802.11ac
rfkill
0: hci0: Bluetooth Soft blocked: no Hard blocked: no 1: phy0: Wireless LAN Soft blocked: no Hard blocked: no
dkms
iw
git status
install-driver.sh
What happened?
Title:
Build failure on Linux 6.12.101 (Debian 13) fixed by changing cfg80211 kernel version check
System:
Problem:
DKMS build fails with:
error: initialization of ‘int (*)(struct wiphy *, struct net_device *, struct cfg80211_chan_def )’
from incompatible pointer type
‘int ()(struct wiphy *, struct cfg80211_chan_def *)’
Cause:
In os_dep/linux/ioctl_cfg80211.c the code uses:
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 13, 0))
but Linux 6.12 requires the newer cfg80211 set_monitor_channel signature.
Fix:
Changed it to:
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 0))
After this change:
dkms build succeeded
dkms install succeeded
Wi-Fi interface loaded successfully:
wlxe8de279f6f2a
@timkb4cq commented on GitHub (Aug 8, 2026):
Thank you.
I maintain the MX Linux packages of these rtl drivers and you saved me a lot of time getting those patched when Debian released 6.12.101
Though I used
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 12, 101))
so the packages would still build if users hadn't upgraded from prior 6.12 kernels.
@cybersnow02 commented on GitHub (Aug 11, 2026):
I also noticed that when kernel 6.12.101 got published. I updated the code like you did in my repo : https://github.com/cybersnow02/8812au-20210820
Kernel 6.12.101 started using net_device suddenly
All kernels are supported up to 7.1
@morrownr should update this too.