Android kernel module driver for Realtek 8852AE, an 802.11ax device made to be included into Bliss OS.
Smooth E 06b57ea90c Merge branch 'lwfinger:main' into main | 1 gadu atpakaļ | |
---|---|---|
debian | 1 gadu atpakaļ | |
.gitignore | 3 gadi atpakaļ | |
Android.mk | 1 gadu atpakaļ | |
LICENSE | 3 gadi atpakaļ | |
Makefile | 1 gadu atpakaļ | |
README.md | 1 gadu atpakaļ | |
acpi.c | 1 gadu atpakaļ | |
acpi.h | 1 gadu atpakaļ | |
cam.c | 2 gadi atpakaļ | |
cam.h | 2 gadi atpakaļ | |
chan.c | 1 gadu atpakaļ | |
chan.h | 1 gadu atpakaļ | |
coex.c | 1 gadu atpakaļ | |
coex.h | 1 gadu atpakaļ | |
core.c | 1 gadu atpakaļ | |
core.h | 1 gadu atpakaļ | |
debug.c | 1 gadu atpakaļ | |
debug.h | 1 gadu atpakaļ | |
dkms.conf | 1 gadu atpakaļ | |
efuse.c | 1 gadu atpakaļ | |
efuse.h | 1 gadu atpakaļ | |
fw.c | 1 gadu atpakaļ | |
fw.h | 1 gadu atpakaļ | |
mac.c | 1 gadu atpakaļ | |
mac.h | 1 gadu atpakaļ | |
mac80211.c | 1 gadu atpakaļ | |
openssl.conf | 3 gadi atpakaļ | |
pci.c | 1 gadu atpakaļ | |
pci.h | 1 gadu atpakaļ | |
phy.c | 1 gadu atpakaļ | |
phy.h | 1 gadu atpakaļ | |
ps.c | 1 gadu atpakaļ | |
ps.h | 1 gadu atpakaļ | |
reg.h | 1 gadu atpakaļ | |
regd.c | 1 gadu atpakaļ | |
rtw8851b.c | 1 gadu atpakaļ | |
rtw8851b.h | 1 gadu atpakaļ | |
rtw8851b_rfk.c | 1 gadu atpakaļ | |
rtw8851b_rfk.h | 1 gadu atpakaļ | |
rtw8851b_rfk_table.c | 1 gadu atpakaļ | |
rtw8851b_rfk_table.h | 1 gadu atpakaļ | |
rtw8851b_table.c | 1 gadu atpakaļ | |
rtw8851b_table.h | 1 gadu atpakaļ | |
rtw8851be.c | 1 gadu atpakaļ | |
rtw8852a.c | 1 gadu atpakaļ | |
rtw8852a.h | 2 gadi atpakaļ | |
rtw8852a_rfk.c | 1 gadu atpakaļ | |
rtw8852a_rfk.h | 1 gadu atpakaļ | |
rtw8852a_rfk_table.c | 2 gadi atpakaļ | |
rtw8852a_rfk_table.h | 2 gadi atpakaļ | |
rtw8852a_table.c | 1 gadu atpakaļ | |
rtw8852a_table.h | 1 gadu atpakaļ | |
rtw8852ae.c | 1 gadu atpakaļ | |
rtw8852au.c | 1 gadu atpakaļ | |
rtw8852b.c | 1 gadu atpakaļ | |
rtw8852b.h | 2 gadi atpakaļ | |
rtw8852b_rfk.c | 1 gadu atpakaļ | |
rtw8852b_rfk.h | 2 gadi atpakaļ | |
rtw8852b_rfk_table.c | 2 gadi atpakaļ | |
rtw8852b_rfk_table.h | 2 gadi atpakaļ | |
rtw8852b_table.c | 1 gadu atpakaļ | |
rtw8852b_table.h | 1 gadu atpakaļ | |
rtw8852be.c | 1 gadu atpakaļ | |
rtw8852c.c | 1 gadu atpakaļ | |
rtw8852c.h | 2 gadi atpakaļ | |
rtw8852c_rfk.c | 1 gadu atpakaļ | |
rtw8852c_rfk.h | 1 gadu atpakaļ | |
rtw8852c_rfk_table.c | 1 gadu atpakaļ | |
rtw8852c_rfk_table.h | 2 gadi atpakaļ | |
rtw8852c_table.c | 1 gadu atpakaļ | |
rtw8852c_table.h | 1 gadu atpakaļ | |
rtw8852ce.c | 1 gadu atpakaļ | |
sar.c | 1 gadu atpakaļ | |
sar.h | 1 gadu atpakaļ | |
ser.c | 1 gadu atpakaļ | |
ser.h | 3 gadi atpakaļ | |
sign-file | 3 gadi atpakaļ | |
suspend_rtw89 | 2 gadi atpakaļ | |
txrx.h | 1 gadu atpakaļ | |
usb.c | 1 gadu atpakaļ | |
usb.h | 1 gadu atpakaļ | |
util.h | 2 gadi atpakaļ | |
wow.c | 1 gadu atpakaļ | |
wow.h | 2 gadi atpakaļ |
🌟 Up-to-Date Drivers: The code in this repo stays in sync with the wireless-next
repository, with additional changes to accommodate kernel API changes over time.
📌 Note: The wireless-next
repo contains the code set for the next kernel version. At present, kernel 6.5 is out, kernel mainline repo is about to become 6.6-rc1, and wireless-next
contains the code that will be in kernel 6.7.
⚠️ Reminder: You must blacklist the in-tree kernel versions of this driver when using the version in this repository! Failing to do so will result in all manner of strange errors!!! See Blacklisting under Important Information section.
Compatible with Linux kernel versions 5.7 and newer as long as your distro hasn't modified any kernel APIs.
We are working on fixing builds on older kernels.
⚠️ Ubuntu users, expect API changes! We will not modify the source for you. You are on your own!
Are you looking for support for these drivers? 🔎 ⚠️
# We do not support the following:
RTL8188EE
RTL8192CE
RTL8192CU
RTL8192DE
RTL8192EE
RTL8192SE
RTL8723AE
RTL8723BE
RTL8821AE
Check your current kernel or visit the Backports Project.
These drivers won't build for kernels older than 5.7. Submit GitHub issues only for build errors.
For operational problems, reach out to Realtek engineers via E-mail at linux-wireless@vger.kernel.org.
Report any build problems and see the FAQ at bottom of this README.
⚠️ If you see a line such as:
make[1]: *** /lib/modules/5.17.5-300.fc36.x86_64/build: No such file or directory.
Stop.
This indicates you have NOT installed the kernel headers.
Use the following instructions for that step.
Below are prerequisites for common Linux distributions before you do a basic installation or installation with SecureBoot:
sudo apt-get update
sudo apt-get install make gcc linux-headers-$(uname -r) build-essential git
sudo dnf install kernel-headers kernel-devel
sudo dnf group install "C Development Tools and Libraries"
sudo zypper install make gcc kernel-devel kernel-default-devel git libopenssl-devel
git clone https://aur.archlinux.org/rtw89-dkms-git.git
cd rtw89-dkms-git
makepkg -sri
git clone https://github.com/lwfinger/rtw89.git
cd rtw89
make
sudo make install
git clone https://github.com/lwfinger/rtw89.git
cd rtw89
make
sudo make sign-install
You will be prompted a password, please keep it in mind and use it in next steps.
Reboot to activate the new installed module, then in the MOK managerment screen:
bash
sudo mokutil --reset
make sign-install
.For all distros:
sudo make uninstall
Below is important information for using this driver.
If your system has ANY conflicting drivers installed, you must blacklist them as well. For kernels 5.6 and newer. Here is a useful link on how to blacklist a module.
Some BIOSs have trouble changing power state from D3hot to D0. If you have this problem, then:
sudo cp suspend_rtw89 /usr/lib/systemd/system-sleep/.
That script will unload the driver before sleep or hibernation, and reload it following resumption.
# Do the following in your terminal:
sudo modprobe -rv rtw_8852ae
sudo modprobe -rv rtw_core # These two statements unload the module.
# Due to the behavior of the modprobe utility, it takes both to unload.
sudo modprobe -v rtw_8852ae # This loads the module.
# A single modprobe call will reload the module.
sudo nano /etc/modprobe.d/<dev_name>.conf
There, enter the line below:
options <device_name> <<driver_option_name>>=<value>
The available options for rtw89pci are disable_clkreq, disable_aspm_l1, and disable_aspm_l1ss.
The available options for rtw89core are debug_mask, and disable_ps_mode.
Normally, none of these will be needed; however, if you are getting firmware errors, one or both of the disableaspm* options may help. They are needed when a buggy BIOS fails to implement the PCI specs correctly.
Firmware from userspace is required to use this driver. This package will attempt to pull the firmware in automatically as a Recommends.
However, if your distro does not provide one of firmware-realtek >= 20230117-1 or linux-firmware >= 20220329.git681281e4-0ubuntu3.10, the driver will fail to load, and dmesg will show an error about a specific missing firmware file. In this case, you can download the firmware files directly from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtw89.
When your kernel updates, run:
cd ~/rtw89
git pull
make clean
make
sudo make install
# or just:
sudo make sign-install
DKMS is commonly used on Debian and derivatives, like Ubuntu, to streamline building extra kernel modules.
By following the instructions below and installing the resulting package, the rtw89 driver will automatically rebuild on kernel updates. Secure boot signing will happen automatically as well, as long as the dkms signing key (usually located at /var/lib/dkms/mok.key) is enrolled. See your distro's secure boot documentation for more details.
sudo apt install dh-sequence-dkms debhelper build-essential devscripts
This workflow uses devscripts, which has quite a few perl dependencies.
You may wish to build inside a chroot to avoid unnecessary clutter on your system. The debian wiki page for chroot has simple instructions for debian, which you can adapt to other distros as needed by changing the release codename and mirror url.
If you do, make sure to install the package on your host system, as it will fail if you try to install inside the chroot.
# If you've already built as above clean up your workspace or check one out specially (otherwise some temp files can end up in your package)
git clean -xfd
git deborig HEAD
dpkg-buildpackage -us -uc
sudo apt install ../rtw89-dkms_1.0.2-3_all.deb
This will install the package, and build the module for your
currently active kernel. You should then be able to modprobe
as
above. It will also load automatically on boot.
Below is a set Frequently Asked Questions when using this repository.
When you have problems where the driver builds and loads correctly, but it fails to work, a GitHub issue on this repository is NOT the place to report it.
We have no idea about the internal workings of any of the chips, and the Realtek engineers who do will not read these issues. To reach them, send E-mail to linux-wireless@vger.kernel.org.
Be sure to include a detailed description of any messages in the kernel logs and any steps that you have taken to analyze or fix the problem. If your description is not complete, you are unlikely to get the help you need.
Start with this page for guidance: https://wireless.wiki.kernel.org/en/users/support
Ubuntu often modifies kernel APIs, which can cause build issues. You'll need to manually adjust the source code or look for solutions specific to your distribution. We cannot support these types of issues.
You will need to pull the latest code from this repository and recompile the driver. Follow the steps in the Maintenance section.
Yes, this repository provides a way to sign the kernel modules to be compatible with Secure Boot. Check out the Installation with SecureBoot section.
For feature requests like supporting a new card, you should reach out to Realtek engineers via E-mail at linux-wireless@vger.kernel.org.