-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rtl8852au does not build with kernel 6.13 #110
Comments
I came from that website too. Based on that patch from RTL88x2bu_chipset-driver with kernel-6.13 support : Nothin' but Slackware, here's a patch for rtl8852au: diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index 2b79c97..277dffb 100755 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -6350,6 +6350,9 @@ static void rtw_get_chbwoff_from_cfg80211_chan_def( 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 +#endif , struct cfg80211_chan_def *chandef #else , struct ieee80211_channel *chan diff --git a/os_dep/osdep_service_linux.c b/os_dep/osdep_service_linux.c index fe47c3b..8fdbcfc 100644 --- a/os_dep/osdep_service_linux.c +++ b/os_dep/osdep_service_linux.c @@ -390,7 +390,9 @@ static int openFile(struct file **fpp, const char *path, int flag, int mode) struct file *fp; #if defined(MODULE_IMPORT_NS) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(6, 13, 0)) MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver); +#endif #endif fp = filp_open(path, flag, mode); @@ -508,7 +510,9 @@ static int isFileReadable(const char *path, u32 *sz) char buf; #if defined(MODULE_IMPORT_NS) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0) && LINUX_VERSION_CODE < KERNEL_VERSION(6, 13, 0)) MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver); +#endif #endif fp = filp_open(path, O_RDONLY, 0); modinfo
|
this does make the driver work but when connecting to a wifi network (I have tried multiple) it just asks me for password even though it was the correct one. |
I'm not sure why, it works for me. # nmcli d show wlp0s20f0u3u2 GENERAL.DEVICE: wlp0s20f0u3u2 GENERAL.TYPE: wifi GENERAL.HWADDR: 5A:0A:CD:**:**:** GENERAL.MTU: 1500 GENERAL.STATE: 100(已连接) GENERAL.CONNECTION: ***** # grep DRIVER /sys/class/net/wlp0s20f0u3u2/device/uevent DRIVER=rtl8852au Did you try on another physical computer? About one year ago, my USB WiFi adapter works in AP mode in both 2.4GHz and 5GHz band, but now, AP mode only works in 2.4GHz band. But if I plug this adapter on another computer, AP mode works fine in both 2.4GHz and 5GHz band. I don't know why, but maybe you can try on another computer to see if it works. |
Is the auth WPA2? I wasted a lot of time not knowing it doesn't work with WPA3, before 6.13 I mean. |
I can also report that it works for me. Thanks so much! |
yep its WPA2 and I feel lost :( |
Unfortunately I dont have another computer nearby |
funny enough I cant find my 2.4Ghz network in the network manager. (Arch Linux) |
When I am home I am going to see if the problem might be that I have multiple network managers (the stock one from the install iso) and see if that is what clashes and doesn't let me connect |
I feel stupid, I just had to switch USB input on the computer... GG! |
[myusername@myusername-main ~]$ sudo dkms --verbose build -m rtl8852au -v r100.865ab0f
[myusername@myusername-main ~]$ cat /var/lib/dkms/rtl8852au/r100.865ab0f/build/make.log for more information.
I managed to then manually patch the MODULE_IMPORT_NS part, and all errors about that did indeed disappear. Unfortunately I am not skilled enough to fix the struct net_device *dev
and struct cfg80211_chan_def *chandef part.
A patch or commit to make rtl8852au compile under kernel 6.13 would be greatly appreciated. Thanks :)
The text was updated successfully, but these errors were encountered: