fix: failing builds for kernel versions >= 6.13/14/15 - #115
Conversation
kernel versions >6.14 cfg80211_ops was updated to include an unsigned int link_id parameter.
|
Thanks! Your changes helped me |
|
@lwfinger this MR fix building the module in Linux 6.13 and above |
|
Guys, stop pinging Larry, he sadly passed away last year:
If any of you want to take over the repo and keep it alive, you are welcome to fork it, but do not expect a merge here. |
That sad, RIP |
|
I sent a ticket to GitHub, should have done it last year but I thought someone was to take over. Let's see if we can at least get a warning in the README. |
|
Thx man. Rip Larry |
Thanks for the information. I'm really sorry to hear we lost him. I will be maintaining my fork for the foreseeable future, I am keeping this issue open for visibility. |
|
[david@archlinux rtl8852au]$ make |
|
So this is a breaking change with archlinux dropping some flags off their kernel config. So the only way to get this working is using something like the cachyos kernel or fedora kernel and stuff. I think I can fix it but its work im not willing to put in and will direct my time to try get rtl8852au support in rtw89 (which attempts broader compatibility) after I start with university. |
|
Furthermore I have 0 experience in network devices so its gonna be a learning curve for me |
|
Hey! Thanks for the amazing work! |
@natimerry Are they aware they broke some drivers? (It's not just this one.) |
|
If you add |
I dont think so, however this one is fixed by not throwing errors on a bunch of warnings. Is there any channel to report it to them? |
|
builds now, thanks @natimerry |
All thanks to @a5a5aa555oo |
|
@dubhater can you link me some of the other drivers that fail to build, I will make a issue referencing those too tonight then |
|
Now that I looked for them, I can only find reports about |
This is incorret. I have found the causes why this driver can't be built on Arch Linux and fixed it yesterday. I don't think Arch Linux's kernel 6.15 is problematic. |
|
Hey @a5a5aa555oo In this case, the driver built successfully under Cachy, Fedora, and Ubuntu kernels—only Arch Linux failed to build it until your patch. This suggests there may have been a configuration switch or packaging change specific to Arch. Even though the issue may now be fixed, I’d still like to report it to understand the rationale behind the change. If it turns out to be a regression, it could be affecting other out-of-tree drivers as well, and possibly should be reverted. As for the specific build failure with this driver: it was entirely due to my oversight—I was still using EXTRA_CFLAGS, which I should have replaced. That said, Arch must have dropped support for EXTRA_CFLAGS, which is likely why the build was breaking only there. To clarify, I understand that its not the kernel completely removing support for the driver and rather changing how the kernel doesn't accept EXTRA_CFLAGS, and I woild raise an issue to understand this breakage and report some drivers (especially older and unmantained ones) will break because of this |
I think this driver hit the same issue—EXTRA_CFLAGS was used to set an include path, but since that's ignored by the kernel build system now (at least on Arch), the path never makes it to the compiler. Switching to ccflags-y resolves it. Again I think its worth raising an issue to atleast get the rationale for this change. |
Correct!!! Actually the support for EXTRA_CFLAGS has been removed since 6.15, but I guess the kernel maintainers of CachyOS decided not to merge the patch above for compatibility reason, so on CachyOS, both But, unfortunately on Arch Linux, kernel 6.15 doesn't support EXTRA_CFLAGS anymore, this is why the driver failed to build on Arch. |
So its completely removed. Apologies for not being able to search for it myself, im on a mobile phone. Anyhow in this case there's no real point in reporting stuff to Arch and rather just port drivers with this problem (to be fair drivers still using EXTRA_CFLAGS will probably have bigger issues) to use ccflags-y |
|
|
Try the driver in @natimerry's repo. https://github.com/natimerry/rtl8852au |
It's works! Thanks |
|
This PR fixed my issues on 6.14. Thanks! |
RIP Larry |
🕊️ RIP Larry Finger (1940–2024)
- Fixed cfg80211 API changes (added radio_id parameter) - Added comprehensive installation and troubleshooting guide - Documented USB 3.0 requirement and performance tips - Tested on TP-Link Archer TX20U Plus
… callbacks; address osdep include visibility (based on community PRs lwfinger#115)
|
Hi, just in case is useful for anyone. I was able to make it work thanks to Sonnet 4.5 with the following changes (included a README for explainability): |
Fix compilation on Fedora 43 (kernel 6.17+)
Update README.md
Update README.md
Oh no. RIP. |
Thanks for this. I rebuilt a device on Debian Trixie on 6.12 and it didn't build. I just updated it on my local copy and was about to make a PR, lol. I should have checked first. It would have saved so much time, lol. |



c65ed43 fixes builds for kernel versions 6.13 and is based on the patch from #110
91d168f fixes builds for kernel versions 6.14 by updating
cfg80211_rtw_get_txpower