Skip to content

Fix: add extern mac_pton for Linux Kernel 7.0-RC1 compatibility#359

Open
Gen5551 wants to merge 6 commits intoMange:realtek-4.4.xfrom
Gen5551:realtek-4.4.x
Open

Fix: add extern mac_pton for Linux Kernel 7.0-RC1 compatibility#359
Gen5551 wants to merge 6 commits intoMange:realtek-4.4.xfrom
Gen5551:realtek-4.4.x

Conversation

@Gen5551
Copy link

@Gen5551 Gen5551 commented Mar 2, 2026

Hello everyone! I've rebuilt the system using the new Linux Kernel 7.0-RC1. It turns out the driver fails to compile without a specific patch due to the implicit declaration of 'mac_pton'.

Here is the fix for the issue. After booting with the patched driver on the new kernel, no errors were detected. Tested on Arch Linux (Celeron G4920).
Снимок экрана_20260302_061506

ioctl_linux.c
FIX for Kernel 7.0 RC1!

IMG_20260302_060941
Screenshot_2026-03-02-06-03-21-133_com android settings
Working good! Max Speed 45-50Mbit\s

@Gen5551
Copy link
Author

Gen5551 commented Mar 2, 2026

dmesg 7.0.txt
Dmesg file,

@CGarces
Copy link
Collaborator

CGarces commented Mar 10, 2026

Hi @Gen5551
I think that your commit break the compilation in other kernels... see
https://github.com/Mange/rtl8192eu-linux-driver/actions/runs/22559925921/job/66344799975?pr=359

/home/runner/work/rtl8192eu-linux-driver/rtl8192eu-linux-driver/os_dep/linux/ioctl_linux.c:28:12: error: conflicting types for ‘mac_pton’; have ‘int(const char *, u8 *)’ {aka ‘int(const char *, unsigned char *)’}

Algo I get some errors with gcc-14 see
https://github.com/Mange/rtl8192eu-linux-driver/actions/runs/22559925921/job/66344799939?pr=359

8192eu.o: error: objtool: mp_xmit_packet_thread+0x1a5: thread_exit() missing __noreturn in .c/.h or NORETURN() in noreturns.h

Please check the two additional commits at #360 if that made sense for you please add the code to your PR and I'll merge it (and close #360)

@Gen5551
Copy link
Author

Gen5551 commented Mar 12, 2026

All requested changes from #360 integrated and tested. Verified on Kernel 6.18 and 7.0-RC3 (GCC 15). Stable in AP mode, dmesg is clean. Ready for merge!
dmesg_linux 7.0-RC3.txt

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants