Code Monkey home page Code Monkey logo

rtw88's Introduction

rtw88 📡🐧

A Repo for the Latest Realtek WiFi 5 Codes on Linux

🌟 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. The current repo matches the kernel as of March 5, 2024.

📌 Note: The wireless-next repo contains the code set for the next kernel version. If kernel 6.X is out, kernel mainline repo is on 6.X+1-rcY, and wireless-next targets kernel 6.X+2 material.


Compatibility

Compatible with Linux kernel versions 5.4 and newer as long as your distro hasn't modified any kernel APIs.

⚠️ Ubuntu users, expect API changes! We will not modify the source for you. You are on your own!

Supported Cards

  • PCIe: RTW8822BE, RTW8822CE, RTW8821CE, RTW8723DE
  • USB: RTW8822BU, RTW8822CU, RTW8821CU, RTW8723DU
  • SDIO: RTW8822BS, RTW8822CS, RTW8821CS, RTW8723DS

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.

Troubleshooting & Support

These drivers won't build for kernels older than 5.4. Submit GitHub issues only for build errors.

For operational problems, reach out to Realtek engineers via E-mail at [email protected].

Issues 🚨

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.

Installation Guide

Prerequisites 📋

Below are prerequisites for common Linux distributions before you do a basic installation or installation with SecureBoot:

Ubuntu

sudo apt-get update
sudo apt-get install make gcc linux-headers-$(uname -r) build-essential git

Fedora

sudo dnf install kernel-headers kernel-devel
sudo dnf group install "C Development Tools and Libraries"

openSUSE

sudo zypper install make gcc kernel-devel kernel-default-devel git libopenssl-devel

Arch

git clone https://aur.archlinux.org/rtw88-dkms-git.git
cd rtw88-dkms-git
makepkg -sri

Basic Installation for All Distros 🛠

git clone https://github.com/lwfinger/rtw88.git
cd rtw88
make
sudo make install

Installation with SecureBoot for All Distros 🔒

git clone git://github.com/lwfinger/rtw88.git
cd rtw88
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:

  1. Select "Enroll key" and enroll the key created by above sign-install step
  2. When promted, enter the password you entered when create sign key.
  3. If you enter wrong password, your computer won't not bebootable. In this case, use the BOOT menu from your BIOS, to boot into your OS then do below steps:
sudo mokutil --reset
  • Restart your computer.
  • Use BOOT menu from BIOS to boot into your OS.
  • In the MOK managerment screen, select reset MOK list.
  • Reboot then retry from the step make sign-install.

Important Information

Below is important information for using this driver.

1. Blacklisting 🚫

If your system has ANY conflicting drivers installed, you must blacklist them as well. For kernels 5.6 and newer, this will include drivers such as rtw88_xxxx. Here is a useful link on how to blacklist a module.

Once you have reached this point, then reboot. Use the command lsmod | grep rtw and check if there are any conflicting drivers. The correct ones are:

  • rtw_8723de rtw_8723du rtw_8723d rtw_8822be rtw_8822bu rtw8822bs rtw_8822b rtw_8822ce rtw_8822cu rtw_8822cs rtw_8821ce rtw_8821cu rtw_8821cs rtw_8822c rtw_8723ds rtw_core rtw_pci

If you have other modules installed, see if you blacklisted them correctly.

2. Recovery Problems After Sleep/Hibernation 🛌

Some BIOSs have trouble changing power state from D3hot to D0. If you have this problem, then:

sudo cp suspend_rtw8822be /usr/lib/systemd/system-sleep/.

That script will unload the driver before sleep or hibernation, and reload it following resumption. If you have some device other than the 8822be, edit the script before copying it.

3. How to Disable/Enable a Kernel Module 🪛

sudo modprobe -r rtw_8723de # This unloads the module
sudo modprobe -r rtw_core

# Due to some pecularities in the modprobe utility, two steps are required.

sudo modprobe rtw_8723de    # This loads the module

# Only a single modprobe call is required to load.

4. Option Configuration 📝

sudo nano /etc/modprobe.d/<dev_name>.conf

There, enter the line below:

options <device_name> <<driver_option_name>>=<value>

The available options for rtw_pci are disable_msi and disable_aspm. The available options for rtw_core are disable_lps_deep, support_bf, and debug_mask.


Kernel Updates 🔄

When your kernel updates, run:

cd ~/rtw88
git pull
make
sudo make install

💡 Remember, every new kernel requires this step - no exceptions. If the update means that you have no network, skip the 'git pull' and build the possible oldeer version, but do that step once you have network, and rebuild if any updates were pulled.

FAQ

Below is a set Frequently Asked Questions when using this repository.


Q1: My driver builds and loads correctly, but fails to work properly. Can you help me?

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 [email protected].

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. NOTE: E-mail sent to that mailing list MUST be plain test. HTML mail will be rejected.

Start with this page for guidance: https://wireless.wiki.kernel.org/en/users/support


Q2: I'm using Ubuntu, and the build failed. What do I do?

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.


Q3: How do I update the driver after a kernel update?

You will need to pull the latest code from this repository and recompile the driver. Follow the steps in the Maintenance section.


Q4: Is Secure Boot supported?

Yes, this repository provides a way to sign the kernel modules to be compatible with Secure Boot. Check out the Installation with SecureBoot section.


Q5: My card isn't listed. Can I request a feature?

For feature requests like supporting a new card, you should reach out to Realtek engineers via E-mail at [email protected].

rtw88's People

Contributors

0x011011110 avatar aikawayataro avatar airtower-luna avatar blauer4 avatar brianwitte avatar dmantipov avatar gotti79 avatar hildawur avatar hmtheboy154 avatar horms avatar isaacjreay avatar jernejsk avatar joerg-krause avatar kelebek333 avatar lwfinger avatar marcinslusarz avatar masterzorag avatar morrownr avatar musamaanjum avatar radxayuntian avatar randolf avatar rene avatar rtlwifi-linux avatar ryanmeagher avatar s-sinnlos avatar saschahauer avatar uremery avatar vognev avatar xdarklight avatar zhangshurong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rtw88's Issues

Not working on new Linux kernel

there's a new linux kernel 5.8.0-2parrot1-amd64 released recently but this drivers don't work with it'
the drivers worked well for me on kernel 5.7.0-2parrot2-amd64

modprobe error in Pop!_OS 21.04 beta

edit to add - this was after upgrading from 20.10 to 21.04 beta

Followed steps in readme.

zzz@zzz:~$ sudo modprobe rtw_8822ce
modprobe: ERROR: could not insert 'rtw_8822ce': Exec format error

zzz@zzz:~/Downloads/rtw88$ uname -a
Linux pop-os 5.11.0-7614-generic #15161862669321.04~ecb25cd-Ubuntu SMP Thu Apr 22 15:59:53 UTC x86_64 x86_64 x86_64 GNU/Linux

zzz@zzz:~/Downloads/rtw88$ sudo dmesg | grep rtw
[ 4.766252] rtw_core: disagrees about version of symbol module_layout
[ 340.548457] rtw_core: disagrees about version of symbol module_layout

Guessing that the current code is not compatible with the kernel version.

RHEL8 rtw88 for 8821ce wifi card not working

hi i am using rhel8.
The kernel I use is 4.18.0-240.1.1.el8_3.x86_64 from the kernel-lt package.

I also tried the kernel-ml (5.10 mainline kernel) package from the epel 8 repository, but I could not use it because I got the kernel panic.

I followed these steps. I initially built the source:

$ make
make -C /lib/modules/4.18.0-240.1.1.el8_3.x86_64/build M=/home/zaryob/rtw88 modules
make[1]: Entering directory '/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64'
  CC [M]  /home/zaryob/rtw88/main.o
  CC [M]  /home/zaryob/rtw88/mac80211.o
  CC [M]  /home/zaryob/rtw88/util.o
  CC [M]  /home/zaryob/rtw88/debug.o
  CC [M]  /home/zaryob/rtw88/tx.o
  CC [M]  /home/zaryob/rtw88/rx.o
  CC [M]  /home/zaryob/rtw88/mac.o
  CC [M]  /home/zaryob/rtw88/phy.o
  CC [M]  /home/zaryob/rtw88/coex.o
  CC [M]  /home/zaryob/rtw88/efuse.o
  CC [M]  /home/zaryob/rtw88/fw.o
  CC [M]  /home/zaryob/rtw88/ps.o
  CC [M]  /home/zaryob/rtw88/sec.o
  CC [M]  /home/zaryob/rtw88/wow.o
  CC [M]  /home/zaryob/rtw88/bf.o
  CC [M]  /home/zaryob/rtw88/regd.o
  LD [M]  /home/zaryob/rtw88/rtw_core.o
  CC [M]  /home/zaryob/rtw88/rtw8822b.o
  CC [M]  /home/zaryob/rtw88/rtw8822b_table.o
  LD [M]  /home/zaryob/rtw88/rtw_8822b.o
  CC [M]  /home/zaryob/rtw88/rtw8822be.o
  LD [M]  /home/zaryob/rtw88/rtw_8822be.o
  CC [M]  /home/zaryob/rtw88/rtw8822c.o
  CC [M]  /home/zaryob/rtw88/rtw8822c_table.o
  LD [M]  /home/zaryob/rtw88/rtw_8822c.o
  CC [M]  /home/zaryob/rtw88/rtw8822ce.o
  LD [M]  /home/zaryob/rtw88/rtw_8822ce.o
  CC [M]  /home/zaryob/rtw88/rtw8723d.o
  CC [M]  /home/zaryob/rtw88/rtw8723d_table.o
  LD [M]  /home/zaryob/rtw88/rtw_8723d.o
  CC [M]  /home/zaryob/rtw88/rtw8723de.o
  LD [M]  /home/zaryob/rtw88/rtw_8723de.o
  CC [M]  /home/zaryob/rtw88/rtw8821c.o
  CC [M]  /home/zaryob/rtw88/rtw8821c_table.o
  LD [M]  /home/zaryob/rtw88/rtw_8821c.o
  CC [M]  /home/zaryob/rtw88/rtw8821ce.o
  LD [M]  /home/zaryob/rtw88/rtw_8821ce.o
  CC [M]  /home/zaryob/rtw88/pci.o
  LD [M]  /home/zaryob/rtw88/rtw_pci.o
  Building modules, stage 2.
  MODPOST 10 modules
  CC      /home/zaryob/rtw88/rtw_8723d.mod.o
  LD [M]  /home/zaryob/rtw88/rtw_8723d.ko
  CC      /home/zaryob/rtw88/rtw_8723de.mod.o
  LD [M]  /home/zaryob/rtw88/rtw_8723de.ko
  CC      /home/zaryob/rtw88/rtw_8821c.mod.o
  LD [M]  /home/zaryob/rtw88/rtw_8821c.ko
  CC      /home/zaryob/rtw88/rtw_8821ce.mod.o
  LD [M]  /home/zaryob/rtw88/rtw_8821ce.ko
  CC      /home/zaryob/rtw88/rtw_8822b.mod.o
  LD [M]  /home/zaryob/rtw88/rtw_8822b.ko
  CC      /home/zaryob/rtw88/rtw_8822be.mod.o
  LD [M]  /home/zaryob/rtw88/rtw_8822be.ko
  CC      /home/zaryob/rtw88/rtw_8822c.mod.o
  LD [M]  /home/zaryob/rtw88/rtw_8822c.ko
  CC      /home/zaryob/rtw88/rtw_8822ce.mod.o
  LD [M]  /home/zaryob/rtw88/rtw_8822ce.ko
  CC      /home/zaryob/rtw88/rtw_core.mod.o
  LD [M]  /home/zaryob/rtw88/rtw_core.ko
  CC      /home/zaryob/rtw88/rtw_pci.mod.o
  LD [M]  /home/zaryob/rtw88/rtw_pci.ko
make[1]: Leaving directory '/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64'

then I installed,

make install
make -C /lib/modules/4.18.0-240.1.1.el8_3.x86_64/build M=/home/zaryob/rtw88 modules
make[1]: Entering directory '/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64'
  Building modules, stage 2.
  MODPOST 10 modules
make[1]: Leaving directory '/usr/src/kernels/4.18.0-240.1.1.el8_3.x86_64'
Install rtw88 SUCCESS

This is modinfo output of 8821ce module

modinfo rtw_8821ce
filename:       /lib/modules/4.18.0-240.1.1.el8_3.x86_64/kernel/drivers/net/wireless/realtek/rtw88/rtw_8821ce.ko.xz
license:        Dual BSD/GPL
description:    Realtek 802.11ac wireless 8821ce driver
author:         Realtek Corporation
rhelversion:    8.3
srcversion:     2D16A2C76B6B4216356C119
alias:          pci:v000010ECd0000C821sv*sd*bc*sc*i*
depends:        rtw_pci,rtw_8821c
name:           rtw_8821ce
vermagic:       4.18.0-240.1.1.el8_3.x86_64 SMP mod_unload modversions 

then I enabled it.

modprobe rtw_8821ce

this is dmesg output.

dmesg|grep 8821
[    9.251318] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000c lmp_ver=08 lmp_subver=8821
[    9.252309] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_fw.bin
[    9.254182] Bluetooth: hci0: RTL: loading rtl_bt/rtl8821c_config.bin
[  292.834270] rtw_8821ce 0000:03:00.0: Firmware version 24.5.0, H2C version 12
[  292.851989] rtw_8821ce 0000:03:00.0: rfe 2 isn't supported
[  292.852083] rtw_8821ce 0000:03:00.0: failed to setup chip efuse info
[  292.852084] rtw_8821ce 0000:03:00.0: failed to setup chip information

I dont make any additional step for /etc/modprobe.d file etc.

Bluetooth devices not being loaded

Hello,

Bluetooth on my debian machine stopped working a couple of days ago. I have been trying to find the root of the problem but haven't been able to. So now I resort to ask for help.

My motherboard is

Asus ROG Strix Z370-I Gaming Mini ITX LGA1151 Motherboard
which has the Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter. This is the device that provides bluetooth connection as well.

Error log:

  • bluetoothctl: No default controller available
  • hcitool dev: Devices: . hcitool device is empty.
  • systemctl start hciuart: Failed to start hciuart.service: Unit hciuart.service not found.
  • ls -Al /dev/ttyAMA0: No such file or directory
  • sudo rfkill list all: Only 'Wireless LAN' shows up. No bluetooth.
  • hciconfig scan: Can't get device info: No such device
  • sudo bluetoothd -n -d: bunch of 'Key file does not have key' errors. Then 'Name already in use' and 'Unable to get on D-Bus'
  • bt-adapter -l: No adapters found
  • sudo cat /var/log/syslog: [haven't really examined closely]

Other notes:

  • systemctl status bluetooth: active(running) [Looks OK. NO ERROR]
  • dmesg | grep -i blue: No apparent errors
  • lspci: wifi card rtl8822be is in use
  • lsmod: modules for rtw_8822be and r8822be are loaded
  • systemctl | grep -i blue: loaded active running Bluetooth service

I will include all the output from running the commands above:
$bluetoothctl
Agent registered
[bluetooth]# power on
No default controller available
[bluetooth]#

$hcitool dev
Devices:

$systemctl start hciuart
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'hciuart.service'.
Authenticating as:
Password:
==== AUTHENTICATION COMPLETE ===
Failed to start hciuart.service: Unit hciuart.service not found.

$ls -Al /dev/ttyAMA0
ls: cannot access '/dev/ttyAMA0': No such file or directory

$sudo rfkill list all
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

$hciconfig scan
Can't get device info: No such device

$ sudo bluetoothd -n -d
bluetoothd[13175]: Bluetooth daemon 5.50
bluetoothd[13175]: src/main.c:parse_config() parsing /etc/bluetooth/main.conf
bluetoothd[13175]: src/main.c:parse_config() Key file does not have key “DiscoverableTimeout” in group “General”
bluetoothd[13175]: src/main.c:parse_config() Key file does not have key “PairableTimeout” in group “General”
bluetoothd[13175]: src/main.c:parse_config() Key file does not have key “Privacy” in group “General”
bluetoothd[13175]: src/main.c:parse_config() Key file does not have key “Name” in group “General”
bluetoothd[13175]: src/main.c:parse_config() Key file does not have key “Class” in group “General”
bluetoothd[13175]: src/main.c:parse_config() Key file does not have key “DeviceID” in group “General”
bluetoothd[13175]: src/main.c:parse_config() Key file does not have key “ReverseServiceDiscovery” in group “General”
bluetoothd[13175]: src/main.c:parse_config() Key file does not have key “MinEncKeySize” in group “GATT”
D-Bus setup failed: Name already in use
bluetoothd[13175]: Unable to get on D-Bus

$bt-adapter -l
No adapters found

$lspci
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
00:14.0 USB controller: Intel Corporation 200 Series/Z370 Chipset Family USB 3.0 xHCI Controller
00:16.0 Communication controller: Intel Corporation 200 Series PCH CSME HECI #1
00:17.0 SATA controller: Intel Corporation 200 Series PCH SATA controller [AHCI mode]
00:1b.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #17 (rev f0)
00:1b.3 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #20 (rev f0)
00:1c.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #1 (rev f0)
00:1c.4 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #5 (rev f0)
00:1d.0 PCI bridge: Intel Corporation 200 Series PCH PCI Express Root Port #9 (rev f0)
00:1f.0 ISA bridge: Intel Corporation Z370 Chipset LPC/eSPI Controller
00:1f.2 Memory controller: Intel Corporation 200 Series/Z370 Chipset Family Power Management Controller
00:1f.3 Audio device: Intel Corporation 200 Series PCH HD Audio
00:1f.4 SMBus: Intel Corporation 200 Series/Z370 Chipset Family SMBus Controller
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (2) I219-V
01:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter
05:00.0 USB controller: ASMedia Technology Inc. ASM2142 USB 3.1 Host Controller

$lsmod | grep -i rtw
rtw_8822be 16384 0
rtw_8822b 229376 1 rtw_8822be
rtw_pci 28672 1 rtw_8822be
rtw_core 200704 2 rtw_8822b,rtw_pci
mac80211 835584 5 rtl_pci,rtw_core,rtlwifi,rtw_pci,r8822be
cfg80211 774144 4 rtw_core,rtlwifi,mac80211,r8822be

I might have to black list some of those above, but they look the same as someone who had their bluetooth working properly, so I don't know if the issue is here.

I've been hit with issues that I have solved on my own before with my general knowledge of how this driver works, but this issue in particular got me fearing two things:
- Either there is much more I still don't understand about the inner workings of this driver.
- Or my physical bluetooth card is damaged and this is a hardware issue. (I prefer to be an idiot that doesn't know how this system works rather than my motherboard having a component fried)

Anyway, please help shed some light into what might be causing this issue. I would really appreciate it.

Issue when upgrading kernel

Hi,

First of all, thank you very much for your work, your driver is the only one working on ubuntu 20.04.1 for my Realtek 8822be card, it's a life saver.
I know you don't want to change the code for Ubuntu but i don't think the issue i stumble upon is ubuntu related.

Anyway, here's the thing. On a fresh install, i installed your driver as you instructed and it worked like a charm (after setting the disable_aspm option to Y for rtw_pci, this might be ubuntu related).

But, after the first kernel upgrade, even though i installed the drivers again as you instructed, they wouldn't load on boot or with modprobe because rtwpci was in use. After a lot of head scratching, we figured out that on install the distro's drivers (rtwpci and rtw88) were not removed from /lib/modules/$(KVER)/kernel/drivers/net/wireless/realtek/rtw88/ and backed up in ~/rtw88/backup_drivers.tar because that backup_drivers.tar file already existed from the previous install on the previous kernel.

I looked into the makefile and it appears to me that this eventuality is not taken into account, i think that a solution would be to replace in the makefile :

install: all
ifeq (,$(wildcard ./backup_drivers.tar))
	@echo Making backups
	@tar cPf backup_drivers.tar $(MODDESTDIR)
	@modprobe -rf rtwpci
	@modprobe -rf rtw88
	@rm -f $(MODDESTDIR)/rtw88*.ko*
	@rm -f $(MODDESTDIR)/rtwpci.ko*
endif

by

install: all
ifeq (,$(wildcard ./backup_drivers.tar))
	@echo Making backups
	@tar cPf backup_drivers.tar $(MODDESTDIR)
	@modprobe -rf rtwpci
	@modprobe -rf rtw88
	@rm -f $(MODDESTDIR)/rtw88*.ko*
	@rm -f $(MODDESTDIR)/rtwpci.ko*
else
	@echo Making backups
	@tar rPf backup_drivers.tar $(MODDESTDIR)
	@modprobe -rf rtwpci
	@modprobe -rf rtw88
	@rm -f $(MODDESTDIR)/rtw88*.ko*
	@rm -f $(MODDESTDIR)/rtwpci.ko*
endif

This is not a huge issue but i'm worried that it would create problems if one wants to use dkms to install your drivers.
Again, thank you very much for your work and i'm sorry if i'm making you waste your time with this.

RTL8822BE Not working on kernel 5.7.12

Hi,

My laptop has an RTL8822BE Wifi/bluetooth controller.

All throughout the release of kernel 5.7 (almost every other subversion) my bluetooth has stopped showing up

Is this a known issue?

8723DE monitor mode stun(freezes) all system

Hello, sorry for opening this issue. I have installed your driver, works well. But when i'm airmon-ng start wlan0 all OS is freezing. May be i'm not understand wich drivers must to be blacklisted. Can you give me some advise what to do
lsmod | grep rtw
rtw_8723de 16384 0
rtw8723d 57344 1 rtw8723de
rtw_pci 28672 1 rtw8723de
rtw_core 188416 2 rtw8723d,rtw_pci
mac80211 905216 3 rtw_core,rtl8xxxu,rtw_pci
cfg80211 872448 4 rtw_core,mac80211,rtl8xxxu,r8188eu

uname -srvo
Linix 5.7.0-kali-amd64 #1 Debian 5.7.6-1kali2 (2020-07-01) GNU/Linux

Thank You!

There doesn't seem to be a way to reach you, so I'm filing an issue :^)

I spent an entire day trying to get ubuntu to work with my realtek card, and after building about a dozen driver projects, I was about to give up. Then I stumbled on a one-line mention of your rtw88 project and decided to give it a last try.

In just a couple of minutes I checked out your code, built it, and voila - everything works! I wanted to thank you for creating/maintaining this lifesaver - you rock!

I consider this issue closed.

RTL8723DE monitoring not working?

after update to kernel 5.7.0-kali1
and got no wifi, i try use RTW88
and getting frezee use monitoring mode
before update kernel iam use rtlwifi_new and use monitor mode verry well?
any solution to use monitor mode again on this kernel?

Wifi connection dissapear after few minutes of working

kernel 5.11.2-arch1-1
Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter (rev ff)

Steps to reproduce:

  1. Boot into system
  2. Connect to wifi
  3. Wait few minutes

Expected result:
Wifi connection is stable.
Actual result:
Wifi connection dissapear after few minutes, restarting systtem wifi option dissapear from menu or make system able to connect but issue is reproducible.
dmesg: https://pastebin.com/BDdUC79j

Not working on new kernel

I have used this repo for my rtl8822be chip for a long time with few issues while updating my kernel every few days.
Now it doesn't seem to work for at least this version, probably also the previous 1 or 2. I am running openSUSE tumbleweed with the 5.9.11-1-default kernel.
When I do dmesg, I see following errors:

Throughout the output, a couple of times the following error:

[   48.042555] failed to read DBI register, addr=0x0719
[   40.865802] WARNING: CPU: 5 PID: 63 at /home/twijg/gitprogrammas/rtw88/pci.c:1173 rtw_dbi_read8.constprop.0+0xa0/0xb0 [rtw_pci]

and at the end this a few times:

[ 3377.001805] rtw_8822be 0000:01:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 3377.001812] rtw_8822be 0000:01:00.0: mac power on failed
[ 3377.001813] rtw_8822be 0000:01:00.0: failed to power on mac
[ 3791.004408] rtw_8822be 0000:01:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 3791.004414] rtw_8822be 0000:01:00.0: mac power on failed
[ 3791.004415] rtw_8822be 0000:01:00.0: failed to power on mac

modprobe: ERROR: could not insert 'rtw_8822be': Exec format error

Hi here I am again.

I still have a Lenovo-IdeaPad-C340-14IWL, with a dual boot windows 10 and ubuntu.
I had ubuntu 20.10, but couldn't get the wifi working.
I reinstalled 20.10 clean and the same problem occurs.
I installed 18.04 and the same problem is there.

Sometimes wifi works and sometimes it does not. No wifi networks found / failed to activate wireless connection etc.

I notice that sometimes my laptop freezes every 10 seconds or so for a second, not just the mouse but everything. It might be related but could not find what to do about it.

Either way, I have spend hours and hours on this problem and it is very frustrating. Here is where I am at now. I don't know a lot about ubuntu, so please any help is really welcome.

lspci ouput
02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter (rev ff)

If understand this correctly means that I need a proper rtl_8822be driver. That is what I download here in this rtw88 repo.

lsmod | grep rtw output:
rtwpci 24576 0 rtw88 610304 1 rtwpci mac80211 851968 2 rtwpci,rtw88 cfg80211 712704 2 mac80211,rtw88

I did not blacklist anything, because I don't see conflicting drivers.

I sudo do
sudo modprobe rtw_8822be and it says
modprobe: ERROR: could not insert 'rtw_8822be': Exec format error

please, how can I simply have wifi working reliably? That is one of the essential things of having a laptop

`make install` fails on Debian 10

Hi Larry,

Something is borked in your Makefile. If I patch it like this, the install step works again:

diff --git a/Makefile b/Makefile
index 5ff386d..ddfc86f 100644
--- a/Makefile
+++ b/Makefile
@@ -86,8 +86,8 @@ ifeq (,$(wildcard ./backup_drivers.tar))
 	@rm -f $(MODDESTDIR)/rtw88*.ko*
 	@rm -f $(MODDESTDIR)/rtwpci.ko*
 else
-	@modprobe -rq rtwpci
-	@modprobe -rq rtw88
+	#@modprobe -rq rtwpci
+	#@modprobe -rq rtw88
 	@rm -f $(MODDESTDIR)/rtw88*.ko*
 	@rm -f $(MODDESTDIR)/rtwpci.ko*
 endif
@@ -108,7 +108,7 @@ endif
 	@#copy firmware images to target folder
 	@mkdir -p $(FIRMWAREDIR)/rtw88/
 	@cp -f *.bin $(FIRMWAREDIR)/rtw88/
-	@mv $(FIRMWAREDIR)/rtw88/rtl8822cu_fw.bin $(FIRMWAREDIR)rtl_bt/.
+	#@mv $(FIRMWAREDIR)/rtw88/rtl8822cu_fw.bin $(FIRMWAREDIR)rtl_bt/.
 	@echo "Install rtw88 SUCCESS"
 
 uninstall:

There are two reasons for the changes:

  1. modprobe -rq returns 1 if the module couldn't be removed. This is the case for a pristine system.
  2. The directory $(FIRMWAREDIR)rtl_bt/. doesn't exist on my system.

HTH,
Flössie

Not working on rtl8822be

kernel 5.11.11-arch1-1
Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter (rev ff)

Steps to reproduce:

  1. Build current version
  2. Restart computer
  3. Wait to connect to wifi
    Expected result :
    Wifi work fine, find and connet to wifi networks, working stable.

Actual result:
Wifi try to connect to wifi network and crash, system dont see wifi adapter.

Dmesg for debugging
dmesg.txt

ntl8821ce driver did not work in debian10 testing

Hi
After install the rtw88 and reboot the system.I get the error.

Here is my system message:thanks for help

#cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux bullseye/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
#uname -a
Linux debian 5.9.0-5-amd64 #1 SMP Debian 5.9.15-1 (2020-12-17) x86_64 GNU/Linux
#lspci -v
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
Subsystem: Lenovo Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers
Flags: bus master, fast devsel, latency 0, IOMMU group 0
Capabilities: <access denied>
Kernel driver in use: skl_uncore

00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07) (prog-if 00 [VGA controller])
Subsystem: Lenovo UHD Graphics 620
Flags: bus master, fast devsel, latency 0, IRQ 140, IOMMU group 1
Memory at f1000000 (64-bit, non-prefetchable) [size=16M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
I/O ports at e000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915

00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
Subsystem: Lenovo Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
Flags: fast devsel, IRQ 255, IOMMU group 2
Memory at f252a000 (64-bit, non-prefetchable) [disabled] [size=4K]
Capabilities: <access denied>

00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21) (prog-if 30 [XHCI])
Subsystem: Lenovo Sunrise Point-LP USB 3.0 xHCI Controller
Flags: bus master, medium devsel, latency 0, IRQ 130, IOMMU group 3
Memory at f2500000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci

00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
Subsystem: Lenovo Sunrise Point-LP Thermal subsystem
Flags: fast devsel, IRQ 18, IOMMU group 3
Memory at f252b000 (64-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: intel_pch_thermal
Kernel modules: intel_pch_thermal

00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
Subsystem: Lenovo Sunrise Point-LP CSME HECI
Flags: bus master, fast devsel, latency 0, IRQ 142, IOMMU group 4
Memory at f252c000 (64-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: mei_me
Kernel modules: mei_me

00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21) (prog-if 01 [AHCI 1.0])
Subsystem: Lenovo Sunrise Point-LP SATA Controller [AHCI mode]
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 131, IOMMU group 5
Memory at f2528000 (32-bit, non-prefetchable) [size=8K]
Memory at f252f000 (32-bit, non-prefetchable) [size=256]
I/O ports at e080 [size=8]
I/O ports at e088 [size=4]
I/O ports at e060 [size=32]
Memory at f252d000 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: ahci
Kernel modules: ahci

00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 122, IOMMU group 6
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 0000d000-0000dfff [size=4K]
Memory behind bridge: f2400000-f24fffff [size=1M]
Prefetchable memory behind bridge: 00000000e0000000-00000000f01fffff [size=258M]
Capabilities: <access denied>
Kernel driver in use: pcieport

00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 123, IOMMU group 7
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
I/O behind bridge: 0000c000-0000cfff [size=4K]
Memory behind bridge: f2300000-f23fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities: <access denied>
Kernel driver in use: pcieport

00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 (rev f1) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 124, IOMMU group 8
Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: f2200000-f22fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities: <access denied>
Kernel driver in use: pcieport

00:1d.2 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #11 (rev f1) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 125, IOMMU group 9
Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
I/O behind bridge: 0000b000-0000bfff [size=4K]
Memory behind bridge: f2100000-f21fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities: <access denied>
Kernel driver in use: pcieport

00:1d.3 PCI bridge: Intel Corporation Device 9d1b (rev f1) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 126, IOMMU group 10
Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: f2000000-f20fffff [size=1M]
Prefetchable memory behind bridge: [disabled]
Capabilities: <access denied>
Kernel driver in use: pcieport

00:1f.0 ISA bridge: Intel Corporation Sunrise Point LPC Controller/eSPI Controller (rev 21)
Subsystem: Lenovo Sunrise Point LPC Controller/eSPI Controller
Flags: bus master, medium devsel, latency 0, IOMMU group 11

00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
Subsystem: Lenovo Sunrise Point-LP PMC
Flags: fast devsel, IOMMU group 11
Memory at f2524000 (32-bit, non-prefetchable) [disabled] [size=16K]

00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
Subsystem: Lenovo Sunrise Point-LP HD Audio
Flags: bus master, fast devsel, latency 64, IRQ 145, IOMMU group 11
Memory at f2520000 (64-bit, non-prefetchable) [size=16K]
Memory at f2510000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel, snd_soc_skl

00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
Subsystem: Lenovo Sunrise Point-LP SMBus
Flags: medium devsel, IRQ 16, IOMMU group 11
Memory at f252e000 (64-bit, non-prefetchable) [size=256]
I/O ports at efa0 [size=32]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801

02:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X] (rev c0)
Subsystem: Lenovo Lexa PRO [Radeon 540/540X/550/550X / RX 540X/550/550X]
Flags: bus master, fast devsel, latency 0, IRQ 141, IOMMU group 12
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f0000000 (64-bit, prefetchable) [size=2M]
I/O ports at d000 [size=256]
Memory at f2400000 (32-bit, non-prefetchable) [size=256K]
Expansion ROM at f2440000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: amdgpu
Kernel modules: amdgpu

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
Flags: bus master, fast devsel, latency 0, IRQ 16, IOMMU group 13
I/O ports at c000 [size=256]
Memory at f2304000 (64-bit, non-prefetchable) [size=4K]
Memory at f2300000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: r8169
Kernel modules: r8169

04:00.0 Non-Volatile memory controller: Union Memory (Shenzhen) Device 5008 (rev 01) (prog-if 02 [NVM Express])
Subsystem: Union Memory (Shenzhen) Device 5008
Flags: bus master, fast devsel, latency 0, IRQ 16, NUMA node 0, IOMMU group 14
Memory at f2200000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: nvme
Kernel modules: nvme

05:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
Subsystem: Lenovo RTL8821CE 802.11ac PCIe Wireless Network Adapter
Flags: bus master, fast devsel, latency 0, IRQ 151, IOMMU group 15
I/O ports at b000 [size=256]
Memory at f2100000 (64-bit, non-prefetchable) [size=64K]
Capabilities: <access denied>
Kernel driver in use: rtw_8821ce
Kernel modules: rtw_8821ce, 8821ce

06:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01) (prog-if 01)
Subsystem: Lenovo SD/MMC Card Reader Controller
Flags: bus master, fast devsel, latency 0, IRQ 127, IOMMU group 16
Memory at f2001000 (32-bit, non-prefetchable) [size=4K]
Memory at f2000000 (32-bit, non-prefetchable) [size=2K]
Capabilities: <access denied>
Kernel driver in use: sdhci-pci
Kernel modules: sdhci_pci
#lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 04f2:b604 Chicony Electronics Co., Ltd Integrated Camera (1280x720@30)
Bus 001 Device 005: ID 0bda:c024 Realtek Semiconductor Corp. Bluetooth Radio
Bus 001 Device 002: ID 17ef:6050 Lenovo Lenovo Precision USB Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmesg about rtw_8821ce

[    9.345883] rtw_8821ce 0000:05:00.0: start vif ea:dc:80:01:f1:93 on port 0
[    9.346442] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[    9.346491] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[    9.346494] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[    9.346495] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[    9.346497] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[    9.346508] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[    9.346529] pcieport 0000:00:1d.2: AER: device recovery failed
[    9.937811] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[    9.937843] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[    9.937845] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[    9.937847] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[    9.937848] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[    9.937876] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[    9.937899] pcieport 0000:00:1d.2: AER: device recovery failed
[    9.938222] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[    9.938235] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[    9.938237] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[    9.938239] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[    9.938240] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[    9.938245] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[    9.938255] pcieport 0000:00:1d.2: AER: device recovery failed
[    9.938691] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[    9.938724] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[    9.938726] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[    9.938728] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[    9.938729] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[    9.938736] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[    9.938747] pcieport 0000:00:1d.2: AER: device recovery failed
[   10.997505] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   10.997529] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   10.997537] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   10.997542] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   10.997548] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   10.997560] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   10.997630] pcieport 0000:00:1d.2: AER: device recovery failed
[   13.733173] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   13.733261] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   13.733264] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   13.733265] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   13.733266] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   13.733272] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   13.733293] pcieport 0000:00:1d.2: AER: device recovery failed
[   13.733294] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   13.733307] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   13.733308] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   13.733309] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   13.733310] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   13.733314] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   13.733319] pcieport 0000:00:1d.2: AER: device recovery failed
[   15.649808] rfkill: input handler disabled
[   18.509820] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   18.509908] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   18.509911] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   18.509912] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   18.509913] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   18.509952] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   18.509977] pcieport 0000:00:1d.2: AER: device recovery failed
[   18.510330] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   18.510402] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   18.510404] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   18.510405] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   18.510406] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   18.510452] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   18.510460] pcieport 0000:00:1d.2: AER: device recovery failed
[   18.510748] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   18.510845] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   18.510846] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   18.510847] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   18.510848] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   18.510877] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   18.510883] pcieport 0000:00:1d.2: AER: device recovery failed
[   19.549731] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   19.549755] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   19.549763] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   19.549769] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   19.549774] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   19.549785] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   19.549870] pcieport 0000:00:1d.2: AER: device recovery failed
[   22.237780] pcieport 0000:00:1d.2: AER: Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   22.237795] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   22.237804] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   22.237810] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   22.237815] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   22.237827] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   22.237903] pcieport 0000:00:1d.2: AER: device recovery failed
[   22.237908] pcieport 0000:00:1d.2: AER: Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   22.237921] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   22.237926] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   22.237931] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   22.237935] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   22.237945] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   22.237971] pcieport 0000:00:1d.2: AER: device recovery failed
[   22.238098] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   22.238117] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   22.238122] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   22.238126] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   22.238131] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   22.238140] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   22.238166] pcieport 0000:00:1d.2: AER: device recovery failed
[   25.510361] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   25.510434] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   25.510443] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   25.510449] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   25.510455] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   25.510486] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   25.510576] pcieport 0000:00:1d.2: AER: device recovery failed
[   25.510803] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   25.510860] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   25.510862] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   25.510864] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   25.510865] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   25.510889] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   25.510901] pcieport 0000:00:1d.2: AER: device recovery failed
[   25.511023] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   25.511075] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   25.511083] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   25.511089] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   25.511091] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   25.511118] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   25.511132] pcieport 0000:00:1d.2: AER: device recovery failed
[   26.557743] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   26.557766] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   26.557775] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   26.557780] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   26.557785] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   26.557795] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   26.557875] pcieport 0000:00:1d.2: AER: device recovery failed
[   29.245768] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   29.245829] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   29.245838] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   29.245843] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   29.245848] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   29.245889] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   29.245967] pcieport 0000:00:1d.2: AER: device recovery failed
[   29.245972] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   29.246005] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   29.246010] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   29.246014] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   29.246018] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   29.246109] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   29.246137] pcieport 0000:00:1d.2: AER: device recovery failed
[   35.510274] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   35.510344] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   35.510352] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   35.510358] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   35.510363] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   35.510398] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   35.510472] pcieport 0000:00:1d.2: AER: device recovery failed
[   35.510707] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   35.510770] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   35.510773] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   35.510774] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   35.510776] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   35.510801] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   35.510813] pcieport 0000:00:1d.2: AER: device recovery failed
[   35.510880] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   35.510926] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   35.510928] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   35.510929] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   35.510931] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   35.510949] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   35.510957] pcieport 0000:00:1d.2: AER: device recovery failed
[   36.549696] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   36.549722] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   36.549732] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   36.549737] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   36.549743] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   36.549755] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   36.549849] pcieport 0000:00:1d.2: AER: device recovery failed
[   39.237801] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   39.237877] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   39.237887] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   39.237893] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   39.237899] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   39.237939] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   39.238021] pcieport 0000:00:1d.2: AER: device recovery failed
[   39.238026] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   39.238065] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   39.238072] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   39.238077] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   39.238084] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   39.238172] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   39.238203] pcieport 0000:00:1d.2: AER: device recovery failed
[   49.510202] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   49.510259] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   49.510270] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   49.510276] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   49.510281] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   49.510317] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   49.510403] pcieport 0000:00:1d.2: AER: device recovery failed
[   49.510558] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   49.510589] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   49.510596] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   49.510602] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   49.510608] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   49.510635] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   49.510669] pcieport 0000:00:1d.2: AER: device recovery failed
[   49.510876] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   49.510922] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   49.510924] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   49.510925] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   49.510927] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   49.510939] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   49.510948] pcieport 0000:00:1d.2: AER: device recovery failed
[   50.549714] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   50.549742] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   50.549753] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   50.549760] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   50.549767] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   50.549780] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   50.549881] pcieport 0000:00:1d.2: AER: device recovery failed
[   53.237763] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   53.237815] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   53.237826] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   53.237847] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   53.237854] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   53.237869] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   53.237957] pcieport 0000:00:1d.2: AER: device recovery failed
[   53.237964] pcieport 0000:00:1d.2: AER: Multiple Uncorrected (Non-Fatal) error received: 0000:00:1d.2
[   53.238002] pcieport 0000:00:1d.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Completer ID)
[   53.238010] pcieport 0000:00:1d.2:   device [8086:9d1a] error status/mask=00008000/00010000
[   53.238016] pcieport 0000:00:1d.2:    [15] CmpltAbrt              (First)
[   53.238022] pcieport 0000:00:1d.2: AER:   TLP Header: 00000000 00000000 00000000 00000000
[   53.238035] rtw_8821ce 0000:05:00.0: AER: can't recover (no error_detected callback)
[   53.238062] pcieport 0000:00:1d.2: AER: device recovery failed

RTL8822BE 5GHz AP mode not supported?

Before the r8822be staging driver got removed with linux 5.2, I could use 5GHz AP mode with this adapter just fine. Now, hostapd fails with the following message:

Channel 36 (primary) not allowed for AP mode, flags: 0x853 NO-IR
wlan0: IEEE 802.11 Configured channel (36) not found from the channel list of current mode (2) IEEE 802.11a
wlan0: IEEE 802.11 Hardware does not support configured channel
Could not select hw_mode and channel. (-3)

Is 5GHz AP mode not supported anymore with this driver?

Unstable connection speed

I have a rtw8723_de card and experience an unstable connection. Reconnecting to the router gives me for a couple of minutes a stable and fast wireless connection and then it becomes unstable again.
Pinging my router I can see ping timings from 2ms to 1500ms.

64 bytes from 192.168.8.1: icmp_seq=78 ttl=64 time=911 ms
64 bytes from 192.168.8.1: icmp_seq=79 ttl=64 time=946 ms
64 bytes from 192.168.8.1: icmp_seq=80 ttl=64 time=940 ms
64 bytes from 192.168.8.1: icmp_seq=81 ttl=64 time=967 ms
64 bytes from 192.168.8.1: icmp_seq=82 ttl=64 time=1008 ms
64 bytes from 192.168.8.1: icmp_seq=83 ttl=64 time=980 ms
64 bytes from 192.168.8.1: icmp_seq=84 ttl=64 time=915 ms
64 bytes from 192.168.8.1: icmp_seq=85 ttl=64 time=999 ms
64 bytes from 192.168.8.1: icmp_seq=86 ttl=64 time=1004 ms
64 bytes from 192.168.8.1: icmp_seq=87 ttl=64 time=1016 ms
64 bytes from 192.168.8.1: icmp_seq=88 ttl=64 time=994 ms
64 bytes from 192.168.8.1: icmp_seq=89 ttl=64 time=925 ms
64 bytes from 192.168.8.1: icmp_seq=90 ttl=64 time=20.1 ms
64 bytes from 192.168.8.1: icmp_seq=91 ttl=64 time=13.4 ms
64 bytes from 192.168.8.1: icmp_seq=92 ttl=64 time=37.8 ms
64 bytes from 192.168.8.1: icmp_seq=93 ttl=64 time=28.6 ms
64 bytes from 192.168.8.1: icmp_seq=94 ttl=64 time=53.5 ms
64 bytes from 192.168.8.1: icmp_seq=95 ttl=64 time=45.2 ms
64 bytes from 192.168.8.1: icmp_seq=96 ttl=64 time=71.5 ms
64 bytes from 192.168.8.1: icmp_seq=97 ttl=64 time=63.6 ms
64 bytes from 192.168.8.1: icmp_seq=98 ttl=64 time=22.6 ms
64 bytes from 192.168.8.1: icmp_seq=99 ttl=64 time=80.8 ms
64 bytes from 192.168.8.1: icmp_seq=100 ttl=64 time=88.6 ms
64 bytes from 192.168.8.1: icmp_seq=101 ttl=64 time=96.9 ms
64 bytes from 192.168.8.1: icmp_seq=102 ttl=64 time=105 ms
64 bytes from 192.168.8.1: icmp_seq=103 ttl=64 time=80.7 ms
64 bytes from 192.168.8.1: icmp_seq=104 ttl=64 time=121 ms
64 bytes from 192.168.8.1: icmp_seq=105 ttl=64 time=129 ms
64 bytes from 192.168.8.1: icmp_seq=106 ttl=64 time=200 ms
64 bytes from 192.168.8.1: icmp_seq=107 ttl=64 time=223 ms
64 bytes from 192.168.8.1: icmp_seq=108 ttl=64 time=247 ms
64 bytes from 192.168.8.1: icmp_seq=109 ttl=64 time=166 ms
64 bytes from 192.168.8.1: icmp_seq=110 ttl=64 time=233 ms
64 bytes from 192.168.8.1: icmp_seq=111 ttl=64 time=212 ms
64 bytes from 192.168.8.1: icmp_seq=112 ttl=64 time=234 ms
64 bytes from 192.168.8.1: icmp_seq=113 ttl=64 time=257 ms
64 bytes from 192.168.8.1: icmp_seq=114 ttl=64 time=33.0 ms
64 bytes from 192.168.8.1: icmp_seq=115 ttl=64 time=215 ms

Sometimes it becomes more stable, after some time, and I get consistent 2-10ms ping times .
Nothing is logged in dmesg or the system logfile, so I am not sure, what to look for. Signal strength is very good at all times (even when the ping times drop significantly). Any idea what to look for, to debug it further?
I am on kernel 5.7.7.

Make error in function 'tasklet_setup'

I got a similar issue to #22, in Ubuntu 18.04 live usb. When I make:

make -C /lib/modules/5.4.0-42-generic/build M=/home/ubuntu/rtw88 modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-42-generic'
  CC [M]  /home/ubuntu/rtw88/main.o
/home/ubuntu/rtw88/main.c: In function ‘rtw_core_init’:
/home/ubuntu/rtw88/main.c:1623:2: error: implicit declaration of function ‘tasklet_setup’; did you mean ‘twsk_net_set’? [-Werror=implicit-function-declaration]
  tasklet_setup(&rtwdev->tx_tasklet, rtw_tx_tasklet);
  ^~~~~~~~~~~~~
  twsk_net_set
cc1: some warnings being treated as errors
scripts/Makefile.build:273: recipe for target '/home/ubuntu/rtw88/main.o' failed
make[2]: *** [/home/ubuntu/rtw88/main.o] Error 1
Makefile:1731: recipe for target '/home/ubuntu/rtw88' failed
make[1]: *** [/home/ubuntu/rtw88] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-42-generic'
Makefile:79: recipe for target 'all' failed
make: *** [all] Error 2

I installed these beforehand:

sudo apt-get install make gcc git build-essential linux-headers-$(uname -r) dkms

rtw88 available in 5.8.0+ kernel

Hi,

This might not be the correct place to ask, i try nonetheless.
the new Kernel 5.8.0+ from repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
has these drivers built in.
I compiled it as a module, i need 8821ce.
When loading the module, i get the following in syslog:

Aug 10 10:53:34 localhost kernel: rtw_8821ce 0000:03:00.0: Firmware version 24.5.0, H2C version 12
Aug 10 10:53:34 localhost kernel: rtw_8821ce 0000:03:00.0: rfe 2 isn't supported
Aug 10 10:53:34 localhost kernel: rtw_8821ce 0000:03:00.0: failed to setup chip efuse info
Aug 10 10:53:34 localhost kernel: rtw_8821ce 0000:03:00.0: failed to setup chip information

I have the correct firmware placed in
/lib/firmware/rtw88/rtw8821c_fw.bin

Any idea how to fix this?

Thank you!

Fix build on Debian Buster

Hello,

here's a little patch to fix the build on Debian Buster (kernel 4.19):

diff --git a/main.h b/main.h
index c396c5e..6707abd 100644
--- a/main.h
+++ b/main.h
@@ -30,6 +30,15 @@
 #include <linux/etherdevice.h>
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0)
+#define fallthrough do {} while (0)
+#endif
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0)
+#define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
+#define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
+#endif
+
 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0)
 #define NUM_NL80211_BANDS IEEE80211_NUM_BANDS
 #endif

HTH,
Flössie

Will Wifi-Direct(P2P mode) be supported?

I am using the rtw88 modules from kernel 5.10:

 $ lspci

...
04:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter
...

$ lsmod|grep rtw

rtw88_8822be           16384  0
rtw88_8822b           229376  1 rtw88_8822be
rtw88_pci              28672  1 rtw88_8822be
rtw88_core            159744  2 rtw88_pci,rtw88_8822b
mac80211              983040  2 rtw88_pci,rtw88_core
cfg80211              974848  3 r8712u,rtw88_core,mac80211

But P2P mode is not supported:

# iw list
Wiphy phy0
...
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * AP/VLAN
		 * monitor
		 * mesh point
	Band 1:
...

Is there any plan to add P2P mode support in the drivers?

I see the closed issuse #38 is related to this. I am also trying to enable miracast (gnome-wireless-displays) on my laptop but it fails to work due to lacking support.

How to remove

Ran the make command for this and it worked like a charm. However, I then learned that I do not have this device. How do I remove the files once installed / made (make)?

sudo make uninstall not working : make: *** [Makefile:112: uninstall] Error 1

Hi ,

I installed this driver on my fedora 32 for testing purposes, But after testing when I tried to remove the driver using make uninstall its throwing below error

rm: cannot remove '/lib/modules/5.7.10-201.fc32.x86_64/kernel/drivers/net/wireless/realtek/rtw88/rtw_*.ko': No such file or directory
make: *** [Makefile:112: uninstall] Error 1

Also I noticed that my wireless stopped working after running make uninstall , How can I copy back original rtw88 drivers shipped with my os ?
PS: As a temporary fix I have switched to older kernel

rtl8723de hotspot :(

thank you so much sir for this project , so much ! no linux has inbuilt driver for my wifi card , if you stop working on it then have to back to windows again :( , by the way I am using fedora 32 , and have succecfully installed the wifi driver from your repo , all working , but i cant make hotspot , fedora show that hotspot created by am not finding connections from others devices ,

wifi doesnt work 5.10.0-kali7-amd64 with RTL8723DE

I'm using 5.10.0-kali7-amd64 with RTL8723DE controller; following the steps wifi doesnt work. I've been watching and reading lot of info about but nothing has work.

No, no error during or after installing. I'm running in dual boot with Windows 10, could be this the cause of this malfunctioning?

more info:
Linux kali 5.10.0-kali7-amd64 #1 SMP Debian 5.10.28-1kali1 (2021-04-12) x86_64 GNU/Linux
Realtek Semiconductor Co., Ltd. RTL8723DE 802.11b/g/n PCIe Adapter
└─$ iwconfig
lo no wireless extensions.
eth0 no wireless extensions.

I dont know what to do now, Ive follow lot of instructions but nothing has work. I need your help.

RTL8821CE AP MODE not working

On kernel 5.9rc4

$ lsmod |grep -e rtw    
rtw88_8821ce           16384  0
rtw88_8821c            77824  1 rtw88_8821ce
rtw88_pci              28672  1 rtw88_8821ce
rtw88_core            147456  2 rtw88_pci,rtw88_8821c
mac80211             1019904  2 rtw88_pci,rtw88_core
cfg80211              876544  2 rtw88_core,mac80211

APMode doesn't work is 80211.ac completely, 802.11g looks like it works from hostapd but SSID is not visible from any device I have.

hw vht capab: 0x3d07122, conf vht capab: 0x0
Completing interface initialization
Mode: IEEE 802.11a  Channel: 36  Frequency: 5180 MHz
DFS 0 channels required radar detection
Could not set channel for kernel driver
Interface initialization failed
wlp2s0: interface state COUNTRY_UPDATE->DISABLED

hostapd.conf (802.11ac)

# cat /etc/hostapd/ac.conf 
ssid=my-test-ap
wpa_passphrase=set-ap-password

country_code=US
# ieee80211d=1
# ieee80211h=1

interface=wlp2s0
driver=nl80211

wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP

logger_syslog=0
logger_syslog_level=4
logger_stdout=-1
logger_stdout_level=0

hw_mode=a
ieee80211n=1
require_ht=1
ieee80211ac=1
require_vht=1

vht_oper_chwidth=1
channel=36
vht_oper_centr_freq_seg0_idx=42

make: *** [Makefile:84: install] Error 1

Hi,

I have a lenovo ideapad C340 and since the update to ubuntu 20.04 have had no wifi.
I follow the guide step by step, but at sudo make install I get the problem: make: *** [Makefile:84: install] Error 1

Maybe this is of any help:
output for lspci -v:

02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822BE 802.11a/b/g/n/ac WiFi adapter (rev ff) (prog-if ff)
	!!! Unknown header type 7f
	Kernel modules: rtw88_8822be, rtw_8822be

Any idea what I can do to get the driver properly installed?
Best,

Kewin

rtw_8822ce can't wake up from suspend

cat /etc/os-release
NAME="Linux Mint"
VERSION="20 (Ulyana)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 20"
VERSION_ID="20"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=ulyana
UBUNTU_CODENAME=focal

inxi -Fxz
System: Kernel: 5.8.18-050818-generic x86_64 bits: 64 compiler: N/A Desktop: Xfce 4.14.2
Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal
Machine: Type: Laptop System: HUAWEI product: BOHL-WXX9 v: M1020 serial:
Mobo: HUAWEI model: BOHL-WXX9-PCB v: M1020 serial: UEFI: HUAWEI v: 1.05
date: 07/20/2020
Battery: ID-1: BAT1 charge: 39.8 Wh condition: 39.8/41.6 Wh (96%) model: Desay HB4692J5ECW-31
status: Unknown
Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M325
charge: 50% (should be ignored) status: N/A
CPU: Topology: 6-Core model: AMD Ryzen 5 4500U with Radeon Graphics bits: 64 type: MCP
arch: Zen rev: 1 L2 cache: 3072 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 28446
Speed: 1772 MHz min/max: 1400/2375 MHz Core speeds (MHz): 1: 1771 2: 3984 3: 1773
4: 3983 5: 3983 6: 1772
Graphics: Device-1: AMD Renoir vendor: QUANTA driver: amdgpu v: kernel bus ID: 03:00.0
Display: x11 server: X.Org 1.20.8 driver: amdgpu,ati unloaded: fbdev,modesetting,vesa
resolution: 1920x1080~60Hz
OpenGL: renderer: AMD RENOIR (DRM 3.38.0 5.8.18-050818-generic LLVM 11.0.0)
v: 4.6 Mesa 21.0.0-devel (git-a22b85c 2020-12-23 focal-oibaf-ppa) direct render: Yes
Audio: Device-1: AMD vendor: QUANTA driver: snd_hda_intel v: kernel bus ID: 03:00.1
Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor vendor: QUANTA
driver: snd_rn_pci_acp3x v: kernel bus ID: 03:00.5
Device-3: AMD Family 17h HD Audio vendor: QUANTA driver: snd_hda_intel v: kernel
bus ID: 03:00.6
Sound Server: ALSA v: k5.8.18-050818-generic
Network: Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter vendor: & Tele RSH
driver: rtw_8822ce v: N/A port: 2000 bus ID: 01:00.0
IF: wlp1s0 state: up mac:
IF-ID-1: br-2b39dfd66955 state: down mac:
IF-ID-2: br-6c49fb830b23 state: down mac:
IF-ID-3: docker0 state: down mac:
Drives: Local Storage: total: 476.94 GiB used: 151.32 GiB (31.7%)
ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB512HBJQ-00000 size: 476.94 GiB
Partition: ID-1: / size: 467.96 GiB used: 151.32 GiB (32.3%) fs: ext4 dev: /dev/nvme0n1p2
Sensors: System Temperatures: cpu: 75.6 C mobo: N/A gpu: amdgpu temp: 56 C
Fan Speeds (RPM): N/A
Info: Processes: 278 Uptime: 13h 33m Memory: 15.08 GiB used: 6.99 GiB (46.3%) Init: systemd
runlevel: 5 Compilers: gcc: 9.3.0 Shell: zsh v: 5.8 inxi: 3.0.38

After wake up from suspend, the network driver can't be loaded. the dmesg output is:
[ 306.980490] rtw_8822ce 0000:01:00.0: Firmware version 7.3.0, H2C version 14
[ 306.980500] rtw_8822ce 0000:01:00.0: can't change power state from D3hot to D0 (config space inaccessible)
[ 306.980542] rtw_8822ce 0000:01:00.0: Firmware version 7.3.0, H2C version 14
[ 306.982485] rtw_8822ce 0000:01:00.0: mac power on failed
[ 306.982487] rtw_8822ce 0000:01:00.0: failed to power on mac
[ 306.982488] rtw_8822ce 0000:01:00.0: failed to setup chip efuse info
[ 306.982489] rtw_8822ce 0000:01:00.0: failed to setup chip information
[ 306.983141] rtw_8822ce: probe of 0000:01:00.0 failed with error -114

Make install fails in kali linux 2020.1b

Dear Larry,
Some command aren't correct in your Makefile. I'd try to fix this problem and solved it correcting these steps:

diff --git a/Makefile b/Makefile
index 3fc1e79..6761829 100644
--- a/Makefile
+++ b/Makefile
@@ -104,7 +104,8 @@ endif
        @#copy firmware images to target folder
        @mkdir -p $(FIRMWAREDIR)/rtw88/
        @cp -f *.bin $(FIRMWAREDIR)/rtw88/
-       @mv $(FIRMWAREDIR)/rtw88/rtl8822cu_fw.bin $(FIRMWAREDIR)rtl_bt/.
+       @mkdir $(FIRMWAREDIR)rtl_bt/
+       @mv $(FIRMWAREDIR)rtw88/rtl8822cu_fw.bin $(FIRMWAREDIR)rtl_bt/.
        @echo "Install rtw88 SUCCESS"
  1. The directory $(FIRMWAREDIR)rtl_bt/ doesn't exist.
  2. The path $(FIRMWAREDIR)/rtw88/rtl8822cu_fw.bin is jot correct.

Best wishes,
Izida.

Current version is not buildable on Arch Linux?

I am on Arch Linux and I tried to build this, but for some reason I am unable. Here is the log:

make -j6
make -C /lib/modules/5.8.10-zen1-1-zen/build M=/home/mthw/rtw88 modules
make[1]: Entering directory '/usr/lib/modules/5.8.10-zen1-1-zen/build'
CC [M] /home/mthw/rtw88/main.o
CC [M] /home/mthw/rtw88/phy.o
CC [M] /home/mthw/rtw88/mac.o
CC [M] /home/mthw/rtw88/tx.o
CC [M] /home/mthw/rtw88/efuse.o
CC [M] /home/mthw/rtw88/coex.o
/home/mthw/rtw88/main.c: In function ‘rtw_core_init’:
/home/mthw/rtw88/main.c:1623:2: error: implicit declaration of function ‘tasklet_setup’ [-Werror=implicit-function-declaration]
1623 | tasklet_setup(&rtwdev->tx_tasklet, rtw_tx_tasklet);
| ^~~~~~~~~~~~~
/home/mthw/rtw88/tx.c: In function ‘rtw_tx_tasklet’:
/home/mthw/rtw88/tx.c:600:27: error: implicit declaration of function ‘from_tasklet’ [-Werror=implicit-function-declaration]
600 | struct rtw_dev *rtwdev = from_tasklet(rtwdev, t, tx_tasklet);
| ^~~~~~~~~~~~
CC [M] /home/mthw/rtw88/fw.o
/home/mthw/rtw88/tx.c:600:51: error: ‘tx_tasklet’ undeclared (first use in this function); did you mean ‘rtw_tx_tasklet’?
600 | struct rtw_dev *rtwdev = from_tasklet(rtwdev, t, tx_tasklet);
| ^~~~~~~~~~
| rtw_tx_tasklet
/home/mthw/rtw88/tx.c:600:51: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:281: /home/mthw/rtw88/tx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:281: /home/mthw/rtw88/main.o] Error 1
make[1]: *** [Makefile:1750: /home/mthw/rtw88] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.8.10-zen1-1-zen/build'
make: *** [Makefile:79: all] Error 2

I have been using this driver without issues for a while, but I just reinstalled my system and it doesn't work anymore. It literally worked yesterday.

Bluetooth on 8821ce not working (only it)

The title is pretty much self explanatory.

i give you some output of maybe useful commands

lspci -nnk

05:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]
        Subsystem: Lenovo RTL8821CE 802.11ac PCIe Wireless Network Adapter [17aa:c024]
        Kernel driver in use: rtw_8821ce
        Kernel modules: rtw_8821ce

lsusb

Bus 002 Device 002: ID 05e3:0612 Genesys Logic, Inc. Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 138a:0011 Validity Sensors, Inc. VFS5011 Fingerprint Reader
Bus 001 Device 003: ID 04f2:b5c0 Chicony Electronics Co., Ltd Integrated Camera
Bus 001 Device 006: ID 258a:1006 Gaming KB  Gaming KB 
Bus 001 Device 004: ID 093a:2521 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsmod | grep rtw

rtw_8821ce             16384  0
rtw_8821c              77824  1 rtw_8821ce
rtw_pci                28672  1 rtw_8821ce
rtw_core              192512  2 rtw_8821c,rtw_pci
mac80211              978944  2 rtw_core,rtw_pci
cfg80211              958464  2 rtw_core,mac80211

dmseg doesn't have anything useful on bluetooth side

let me know if you need anything more

Compilation fails on kernels with fsleep

The check for fsleep in commit accc527 doesn't work - on newer kernels the build fails because fsleep gets redefined. I tried finding out more about the way you checked for fsleep being defined but didn't find any information about whether this is supposed to work. An alternative way would apparently be using the __weak__ function attribute, but I couldn't get that to work either. For now I just removed the definition in main.h as a workaround for me.

8723de Slow wifi speed, high ping and packet loss

in my hp laptop with rtl8723de chip WiFi speed is unstable and too slow. ping to modem is too high and also packet loss is there.
I'm getting full speed on windows and also via external WiFi adaptor. Tried manjaro , popOS, OpenSuse ,Garuda Linux with kernel 5.8 , 5.9 , 5.10 & 5.11 same issue is in all WiFi worked otb in all distros but this issue exist.
I've installed this driver and same issue facing here too

Results of my actual WiFi speed and speed I'm getting is attached below.
Please do help me out to get it working.

20210403_150622
20210403_115833
20210403_150616
20210403_115958

Confusion as to which driver I'm using.

Hi,

First, let me thank you for your help, it is greatly appreciated.

I'm running into an issue and I'm not sure how to fix it, I have read the README several times now.

On your readme it says:

The correct ones are:
rtw_8723de rtw_8723d rtw_8822be rtw_8822b rtw_8822ce rtw_8822c rtw_core and rtw_pci

Is this sentence missing rtw_8821ce ?

When I do lsmod | grep rtw I get this:

rtw_8821ce 0
rtw_8821c 1 rtw_8821ce
rtw_pci 1 rtw_8821ce
rtw_core 2 rtw_8821c,rtw_pci
mac80211 2 rtw_core,rtw_pci
cfg80211 3 rtw_core,mac80211,8821ce

I guess my questions is, how do I know if I'm using your driver, or the one from:

https://github.com/tomaspinho/rtl8821ce

Because I forgot which one I installed.

Is it possible that they have the same name?

And how do I switch between them if they have the same name?

I'm getting really weak wifi signal and don't know how to fix it.

Thank you so much!

Debian 10

After installing Debian 10, install the firmware to be able to use Wifi, from rtw88.git.
I was able to use the Wifi of my HP Proobok.
However, after a while, the following error begins to be generated and after that, my notebook is crach.
I attach features of my OS and errors before crash.

Thank you very much for your help!

root@mjunhytgb:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

root@mjunhytgb:~# uname -a
Linux mjunhytgb 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux

syslog

Apr 7 00:17:02 mjunhytgb kernel: [19031.285444] rtw_8821ce 0000:02:00.0: firmware failed to leave lps state
Apr 7 00:17:22 mjunhytgb kernel: [19051.281404] rtw_8821ce 0000:02:00.0: firmware failed to leave lps state
Apr 7 00:22:45 mjunhytgb kernel: [19374.591525] broken atomic modeset userspace detected, disabling atomic

Kernel version is 4.11 which is below 4.19

[root@localhost Downloads]# cd rtw88-master/
[root@localhost rtw88-master]# make
make -C /lib/modules/4.11.12-100.fc24.x86_64/build M=/home/jaiprakash/Downloads/rtw88-master modules
make[1]: Entering directory '/usr/src/kernels/4.11.12-100.fc24.x86_64'
Makefile:923: "Cannot use CONFIG_STACK_VALIDATION, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
CC [M] /home/jaiprakash/Downloads/rtw88-master/main.o
/home/jaiprakash/Downloads/rtw88-master/main.c:25:65: error: expected ‘)’ before ‘bool’
module_param_named(disable_lps_deep, rtw_disable_lps_deep_mode, bool, 0644);
^~~~
/home/jaiprakash/Downloads/rtw88-master/main.c:26:48: error: expected ‘)’ before ‘bool’
module_param_named(support_bf, rtw_bf_support, bool, 0644);
^~~~
/home/jaiprakash/Downloads/rtw88-master/main.c:27:48: error: expected ‘)’ before ‘uint’
module_param_named(debug_mask, rtw_debug_mask, uint, 0644);
^~~~
/home/jaiprakash/Downloads/rtw88-master/main.c:29:36: error: expected ‘)’ before string constant
MODULE_PARM_DESC(disable_lps_deep, "Set Y to disable Deep PS");
^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jaiprakash/Downloads/rtw88-master/main.c:30:30: error: expected ‘)’ before string constant
MODULE_PARM_DESC(support_bf, "Set Y to enable beamformee support");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jaiprakash/Downloads/rtw88-master/main.c:31:30: error: expected ‘)’ before string constant
MODULE_PARM_DESC(debug_mask, "Debugging mask");
^~~~~~~~~~~~~~~~
/home/jaiprakash/Downloads/rtw88-master/main.c:1842:15: error: expected declaration specifiers or ‘...’ before string constant
MODULE_AUTHOR("Realtek Corporation");
^~~~~~~~~~~~~~~~~~~~~
/home/jaiprakash/Downloads/rtw88-master/main.c:1843:20: error: expected declaration specifiers or ‘...’ before string constant
MODULE_DESCRIPTION("Realtek 802.11ac wireless core module");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/jaiprakash/Downloads/rtw88-master/main.c:1844:16: error: expected declaration specifiers or ‘...’ before string constant
MODULE_LICENSE("Dual BSD/GPL");
^~~~~~~~~~~~~~
scripts/Makefile.build:294: recipe for target '/home/jaiprakash/Downloads/rtw88-master/main.o' failed
make[2]: *** [/home/jaiprakash/Downloads/rtw88-master/main.o] Error 1
Makefile:1496: recipe for target 'module/home/jaiprakash/Downloads/rtw88-master' failed
make[1]: *** [module/home/jaiprakash/Downloads/rtw88-master] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.11.12-100.fc24.x86_64'
Makefile:79: recipe for target 'all' failed
make: *** [all] Error 2

Error when make

in file phy.c in function rtw_get_channel_group before switch is present "_" row 1655.
solving by deleting it, on my system after that maked sucessfuly.

Compile Error in Kali

First, thank you so much for maintaining this repository. I've been using the driver for quite some time and it's made my lenovo yoga run like a champ with Kali.

During the latest kernel upgrade I received the following gcc errors when running make

make -C /lib/modules/5.7.0-kali3-amd64/build M=/home/toor/rtw88 modules
make[1]: Entering directory '/usr/src/linux-headers-5.7.0-kali3-amd64'
CC [M] /home/toor/rtw88/main.o
gcc: error: unrecognized command-line option ‘--param=allow-store-data-races=0’; did you mean ‘--allow-store-data-races’?
make[3]: *** [/usr/src/linux-headers-5.7.0-kali3-common/scripts/Makefile.build:272: /home/toor/rtw88/main.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.7.0-kali3-common/Makefile:1745: /home/toor/rtw88] Error 2
make[1]: *** [/usr/src/linux-headers-5.7.0-kali3-common/Makefile:180: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.7.0-kali3-amd64'
make: *** [Makefile:80: all] Error 2

Any thoughts - I've not come accross this until this kernel. Thanks again!

Poor reception of 2.4 GHz wifi

I have a laptop with an rtl8821ce wifi adapter. 5GHz works great with this driver, but 2.4 GHz has very weak reception. It won't even pick up my home router's 2.4 GHz signal from the next room. My phone's wifi tethering supports only 2.4 GHz. The phone can be right next to my laptop and register weak signal with about 1 Mbps download speed and 4 Mbps upload. My laptop worked well on 2.4 GHz wifi with the rtl8821ce driver provided by tomaspinho, so I know it's not a hardware issue.

Parameter ant_sel get ignored

I'm using rtl8723de and build the latest rtw88 driver. When I set ant_sel=2 in modprobe.d directory, I got this from dmesg:
rtw_8723de: unknown parameter 'ant_sel' ignored

OS: Artix Linux
Kernel: 5.7.6-artix1-1

Thank You.

Hp notebook 15-r041tx "wifi adapter not found"

cmd: lspci
result as below-
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:02.0 VGA compatible controller: VMware SVGA II Adapter
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
00:05.0 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 01)
00:06.0 USB controller: Apple Inc. KeyLargo/Intrepid USB
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:0d.0 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02)

basically i have tried all your instructions but still not working, i could see there is no network controller available in the list above. I am using virtualBox but wifi works fine in laptop. I tried different linux OS still same issue persist. watched too many videos and books but couldn't find solution. most of the users using your repository. i think this is the best platform where i can expect to get the resolution.

rtl8822be cannot run normally

uname -a

Linux Legion 5.4.0-42-generic #46~18.04.1-Ubuntu SMP Fri Jul 10 07:21:24 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

sudo lshw -c network

*-generic DISABLED
description: Wireless interface
product: Illegal Vendor ID
vendor: Illegal Vendor ID
physical id: 0
bus info: pci@0000:07:00.0
logical name: wlp7s0
version: ff
serial: 80:2b:f9:71:90:cb
width: 32 bits
clock: 66MHz
capabilities: bus_master vga_palette cap_list ethernet physical wireless
configuration: broadcast=yes driver=rtw_8822be driverversion=5.4.0-42-generic firmware=N/A latency=255 link=no maxlatency=255 mingnt=255 multicast=yes wireless=IEEE 802.11
resources: irq:141 ioport:4000(size=256) memory:a4300000-a430ffff

This is the result of dmesg | grep rtw

[ 241.092855] WARNING: CPU: 1 PID: 296 at /home/raymond-du/文档/rtw88-master/pci.c:1171 rtw_dbi_read8.constprop.30+0xaa/0xc0 [rtw_pci]
[ 241.092855] Modules linked in: ccm nls_iso8859_1 uvcvideo snd_sof_pci snd_sof_intel_hda_common snd_soc_hdac_hda snd_sof_intel_hda snd_sof_intel_byt videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 snd_sof_intel_ipc hid_multitouch snd_sof nvidia_uvm(OE) snd_sof_xtensa_dsp snd_hda_ext_core snd_soc_acpi_intel_match snd_hda_codec_realtek 8250_dw videobuf2_common snd_soc_acpi snd_hda_codec_generic ledtrig_audio mei_hdcp videodev intel_rapl_msr nvidia_drm(POE) mc nvidia_modeset(POE) snd_hda_codec_hdmi snd_soc_core snd_compress ac97_bus snd_pcm_dmaengine x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel nvidia(POE) snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core rndis_host snd_hwdep snd_pcm cdc_ether snd_seq_midi snd_seq_midi_event i915 rtw_8822be(OE) rtw_8822b(OE) kvm rtw_pci(OE) crct10dif_pclmul rtw_core(OE) crc32_pclmul mac80211 snd_rawmidi usbnet ghash_clmulni_intel snd_seq aesni_intel cfg80211 ipmi_devintf mii snd_seq_device snd_timer crypto_simd ipmi_msghandler libarc4
[ 241.092900] RIP: 0010:rtw_dbi_read8.constprop.30+0xaa/0xc0 [rtw_pci]
[ 241.092908] rtw_pci_link_ps+0x58/0xa0 [rtw_pci]
[ 241.092912] rtw_enter_ips+0x3c/0x50 [rtw_core]
[ 241.092914] rtw_ops_config+0xa2/0xf0 [rtw_core]
[ 241.093003] rtw_8822be 0000:07:00.0: failed to read ASPM, ret=-5
[ 241.093118] rtw_8822be 0000:07:00.0: stop vif 80:2b:f9:71:90:cb on port 0
[ 243.291417] rtw_8822be 0000:07:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 247.891002] rtw_8822be 0000:07:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 247.891010] rtw_8822be 0000:07:00.0: mac power on failed
[ 247.891011] rtw_8822be 0000:07:00.0: failed to power on mac
[ 250.087721] rtw_8822be 0000:07:00.0: failed to poll offset=0x5 mask=0x2 value=0x0
[ 250.087730] rtw_8822be 0000:07:00.0: mac power on failed
[ 250.087731] rtw_8822be 0000:07:00.0: failed to power on mac

can you help me with this issue ?

GCC ERROR on kali linux 2020.3

I cloned rtw88 (for rtl8723de) as you instructed and when I run make command it gives an error----

make -C /lib/modules/5.7.0-kali3-amd64/build M=/home/cooldude/rtw88 modules
make[1]: Entering directory '/usr/src/linux-headers-5.7.0-kali3-amd64'
CC [M] /home/cooldude/rtw88/main.o
gcc: error: unrecognized command-line option ‘--param=allow-store-data-races=0’; did you mean ‘--allow-store-data-races’?
make[3]: *** [/usr/src/linux-headers-5.7.0-kali3-common/scripts/Makefile.build:272: /home/cooldude/rtw88/main.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.7.0-kali3-common/Makefile:1745: /home/cooldude/rtw88] Error 2
make[1]: *** [/usr/src/linux-headers-5.7.0-kali3-common/Makefile:180: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.7.0-kali3-amd64'
make: *** [Makefile:80: all] Error 2

PLEASE HELP TO SORT THIS OUT!!

Stopped working after 5.4.88-1-lts update

Not sure if its an issue on your the driver's or not. Had no issues during previous updates. After updating to 5.4.88-1-lts (on Arch) and reinstalling the drivers as usual, wifi went down. lspci and modprobe show module loaded correctly.
Steps taken: updated kernel, rebooted, reinstalled drivers, rebooted
Downgrading to 5.4.87-1-lts solved the issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.