-
Notifications
You must be signed in to change notification settings - Fork 164
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
Cannot build on Linux 6.10 Kernel #356
Comments
I managed to get my WiFi working again in Arch Linux by uninstalling this driver and unblacklisting the kernel modules in |
Sounds good!How to do it? |
# Uninstall the driver. In my case, it had been installed with yay
yay -R rtw89-dkms-git
# Unblacklist the kernel modules. In my case there was a file that I had placed for blacklisting kernel modules. Find the file in:
ls /etc/modprobe.d/
# Rebuild initramfs
sudo mkinitcpio -P
# Mine was fine after rebooting
reboot |
same in ubuntu24.04,kernel version 6.10.4 |
my modifs to compil under 6.10.4 :
But modules don't insert good => Invalid Aggument... :-( |
According to https://lore.kernel.org/linux-rdma/[email protected]/t/ I replace PCI_IRQ_LEGACY by PCI_IRQ_INTX |
My changes for kernel 6.10.2. @brianwitte
|
Hum...
Maybe I'm wrong, but you never fall in "LINUX_VERSION_CODE >= KERNEL_VERSION(6, 10, 0)", because LINUX_VERSION_CODE >= KERNEL_VERSION(6, 10, 0) implie LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 0). |
You are correct. The commit 6cc0f85 messed up the code that we should revert:
In fact, there is no change after kernel 6.10, so we need below change to correct it.
|
hey, @pkshih. reverting tonight, sorry I somehow missed these notifications. thank you, @CharSnipeur 👍 |
I also encountered the problem of Invalid argument:
|
I use Linux 6.10 Kernel and use make command,it reports:
/home/mozixun/Cache/rtw89/phy.c: In function ‘rtw89_phy_ra_sta_update’:
/home/mozixun/Cache/rtw89/phy.c:397:21: warning: unused variable ‘mcs_map’ [-Wunused-variable]
397 | u16 mcs_map = le16_to_cpu(sta->deflink.vht_cap.vht_mcs.rx_mcs_map);
| ^~~~~~~
/home/mozixun/Cache/rtw89/phy.c:399:23: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’
399 | } else if (sta->vht_cap.vht_supported) {
| ^~
In file included from ./include/linux/byteorder/little_endian.h:5,
from ./arch/x86/include/uapi/asm/byteorder.h:5,
from ./include/asm-generic/qrwlock_types.h:6,
from ./arch/x86/include/asm/spinlock_types.h:7,
from ./include/linux/spinlock_types_raw.h:7,
from ./include/linux/ratelimit_types.h:7,
from ./include/linux/printk.h:9,
from ./include/asm-generic/bug.h:22,
from ./arch/x86/include/asm/bug.h:87,
from ./include/linux/bug.h:5,
from ./include/linux/average.h:5,
from /home/mozixun/Cache/rtw89/core.h:8,
from /home/mozixun/Cache/rtw89/coex.h:8,
from /home/mozixun/Cache/rtw89/phy.c:5:
/home/mozixun/Cache/rtw89/phy.c:400:46: error: ‘struct ieee80211_sta’ has no member named ‘vht_cap’
400 | u16 mcs_map = le16_to_cpu(sta->vht_cap.vht_mcs.rx_mcs_map);
| ^~
./include/uapi/linux/byteorder/little_endian.h:37:51: note: in definition of macro ‘__le16_to_cpu’
37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
| ^
/home/mozixun/Cache/rtw89/phy.c:400:31: note: in expansion of macro ‘le16_to_cpu’
400 | u16 mcs_map = le16_to_cpu(sta->vht_cap.vht_mcs.rx_mcs_map);
| ^~~~~~~~~~~
make[3]: *** [scripts/Makefile.build:244: /home/mozixun/Cache/rtw89/phy.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.10.0-dppve/Makefile:1934: /home/mozixun/Cache/rtw89] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.10.0-dppve'
make: *** [Makefile:104: all] Error 2
Could developer improve the support of Linux higher kernel version?Thanks!
The text was updated successfully, but these errors were encountered: