-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project: Add 8821/11au rtw88 in-kernel driver. Need testers... #133
Comments
I get a maximum of 130 Mbps transmit and 93 RX with iperf3. LibreSpeed gets 119 down and 113 up. |
The master branch now contains all of dubhater's changes for the RTW8821AU and RTW8812AU, and the driver works. I have not removed any of the other branches until the code is checked a bit more, but please test everything. The speeds are still on the low side, but that will come. |
Initital testing of rtw88 master:
I ran iperf3 several times with my primary testing setup. Speed looks really good. Around 220 Mbps is about as fast as this chip can go if the out-of-kernel results over the last few years are good. The test above is on a DFS channel where there is no congestion. dmesg is clean. I'm impressed so far. Monitor mode frame injection test:
Going in and out of monitor mode works well and things look like they should. The injection test above showed very good results. So far monitor mode looks good. I will do more detailed test on managed and monitor mode as able this week and I plan to test AP mode and I plan to rework the first message in this thread to provide instructions to those who can test/report as most will not be used to the instructions for getting this driver going, I am still looking for someone with a rtl8821au based adapter and someone with an old laptop with a rtl8821ce chip in it so we can test bluetooth. |
@morrownr rtw_8812au is not ready yet. I can see some RTL8821AE on Aliexpress, both M.2 and mini PCIe. |
Give me a chance to round up some testers that already have the chips. We can always go get one if we have to do so. This repo gets over 100 hits per day so there are a lot of users of this chip. I just need to work on getting them in here now that we have something for them to test. I'll work it. I'm impressed with this driver so far. We'll find problems but so far it is working well. My opinion after a few years of supporting out-of-kernel drivers for both the rtl8821au and rtl8821cu is that the au is simply a more reliable chip that causes users far fewer problems. |
I have a TP-Link Archer T2U PLUS [RTL8821AU]. I removed this kernel module using So far everything is working good. I am willing to help, but I don't have a lot of experience in this field. Are there any instructions to run the required tests? Just let me know. |
Hi @gmsanchez Thanks for testing.
Do you have any experience using any modes in addition to managed (client) mode? Please document your distro and version here and post the results of the following: $ uname -r Do you know of a way to test your speed? If so, do it. Post the results of: $ sudo dmesg | grep rtw Since you have an adapter with the version of the chip that has bluetooth support, can you verify that bluetooth is working correctly? Post the results of: $ lsusb If your adapter has an LED, does it blink? Lastly, just use it. See if anything goes wrong over the next few days. Keep us posted. |
I don't know how to test my speed.
I don't have any bluetooth device on my system.
I'll move the adapter to the front and check the LED status. In the meantime, the requested output of the commands is below:
|
rtw88 master - rtw_8821au I am seeing the below during compilation. This is with Debian 12 and kernels 6.1 LTS and 6.6 LTS plus gcc 12.2. This not fatal but...
|
The problem is that the code used max(a,b), whereas it should have been max_t(u32,a,b). It now compiles cleanly on openSUSE Tumbleweed and Debian 12. |
You can give the following site a try for basic speed testing: Most of us use iperf3 on our local lans for speed testing. Do you have a RasPi on your local lan or a wifi router that runs OpenWRT?
It looked like you might have a version of the chipset that includes bluetooth support so I was looking to see if the bluetooth in your adapter was working. Maybe you have a chip that is wifi only.
Let me think out loud here for a moment. I am trying to sort out why the above line is needed. What is it doing for us? Thanks for the info and we'll be waiting for additional reports. |
Awesome! Clean compile here. FYI: I'll be moving to AP mode testing soon. So far, managed and monitor modes look really good but my AP mode testing will take me to another distro and ARM64. |
Here is a very minor nitpick: When I run iperf3, I am seeing Like I said, nitpick. I am having a difficult time finding any problems with managed and monitor modes. I am off to test AP mode. |
Do you see any WARNINGS in your logs like this "WARNING: CPU: 3 PID: 36 at net/mac80211/rx.c"? Your CPU and PID will be different. That may be the source of your drops. I have a patch to silence the WARNINGS, but the drops are not fixed as the packets are malformed. What is the utility that produced the screenshot? I am not familiar with anything like it. |
@morrownr I'm using a Debian-based custom arm64/armhf distribution, and as such I can't build the rtw88 driver via @lwfinger's process (I didn't bother to try to address this further). Instead, I simply removed the original mainline (6.9-rc7) rtw88 driver source and replaced it completely with @lwfinger's version from his github. Now, when building this new version of rtw88 I am getting errors relating to the PCI driver module support or something (see errors below). My kernel configuration does not enable CONFIG_PCI, just in case this might be related. I haven't debugged the new in-kernel rtw88 build process any further. I'm pointing this out just in case there is an oversight in this new rtw88 code for non-CONFIG_PCI and/or ARM builds (or something). As a comparison, the mainline 6.9-rc7 rtw88 driver builds completely fine - without any errors - so there does appear to be a regression in this new version of the driver source. In my kernel config I am only enabling the the 8821CU module, so it is kind of odd that the build is erroring out for driver sources that aren't even enabled:
Build errors:
|
@5kft That's what I was thinking too, but only if the missing PHY status is normal, if it's like that with the official driver too. I haven't checked yet. (Also prev_signal_power has to go in a struct, rtw_dev, rtw_phy, something like that. Otherwise if you have two devices using this driver at the same time the signal strength will be incorrect.) |
@dubhater Totally makes sense. |
@5kft It's the same with the official driver. Fortunately, not knowing the signal strength for some frames is very normal, not just for Realtek chips. mac80211 already supports this: diff --git a/drivers/net/wireless/realtek/rtw88/rx.c b/drivers/net/wireless/realtek/rtw88/rx.c
index 66f9419588cf..4f9fce3f79b1 100644
--- a/drivers/net/wireless/realtek/rtw88/rx.c
+++ b/drivers/net/wireless/realtek/rtw88/rx.c
@@ -235,10 +235,14 @@ void rtw_rx_fill_rx_status(struct rtw_dev *rtwdev,
else
rx_status->bw = RATE_INFO_BW_20;
- rx_status->signal = pkt_stat->signal_power;
- for (path = 0; path < rtwdev->hal.rf_path_num; path++) {
- rx_status->chains |= BIT(path);
- rx_status->chain_signal[path] = pkt_stat->rx_power[path];
+ if (pkt_stat->phy_status) {
+ rx_status->signal = pkt_stat->signal_power;
+ for (path = 0; path < rtwdev->hal.rf_path_num; path++) {
+ rx_status->chains |= BIT(path);
+ rx_status->chain_signal[path] = pkt_stat->rx_power[path];
+ }
+ } else {
+ rx_status->flag |= RX_FLAG_NO_SIGNAL_VAL;
}
rtw_rx_addr_match(rtwdev, pkt_stat, hdr); |
@dubhater This is perfect - very nice! I can confirm that this change works like a charm. Thank you! |
Hi fellas, I wrote my experiences with the I wasn't sure what would be helpful or not so I pretty much just put everything I could think of there. I won't subscribe to this issue here since it's pretty active (and I doubt I'd be of any help either) but I'll try to keep an eye for replies on the linked issue. Cheers! |
Hello, I have tried using https://github.com/morrownr/8821au-20210708 , I have found this in https://forums.linuxmint.com/viewtopic.php?t=376909 It works great, but i'm not sure about how good it works and my wifi speed is not great, so can't really do a wifi test speed with over 50 mbps. neofetch
lsusb
I have read tukkek post, it seems kinda lacking on os and other information, so I did not get any usefull information, also read several other ubuntu forums and linux forums, this was the most legit looking driver, althought it has some recent updates a less than year ago, I'm concerned a bit. If you have any more questions, I will answer them. EDIT: I did basic wifi speed test, I'm not that experienced to do other tests like mode switch or etc |
Hi, I've just installed this on Ubuntu 22.04.5 kernel 6.8.0-45-generic after the current 8821au-20210708 stopped working since a kernel update yesterday and I could not make it work again. My adapter is a TP-Link Archer T2U. |
@javic-elec Not sure why your 8821au-20210708 failed, maybe reinstall??. I'm also using 8821au-20210708 on Pop!_OS 22.04 LTS x86_64, 6.9.3-76060903-generic for more than a month, My adapter (ID 0846:9052 NetGear, Inc. A6100 AC600 DB Wireless Adapter [Realtek RTL8811AU] Prehaps a bit more testing??, not really sure. |
I have TP-Link Archer T2U Plus on Linux Mint 22 with kernel 6.8.0-45 and driver from @morrownr also doesn't work ;/ |
Show us the results of the following: $ lsusb |
lsusb:
and DKMS status: |
@rola22 Well, that vid/pid does indicate your adapter has a rtl8821au chip so... How about you start a new issue in this repo with a report regarding what the driver in this repo did while installing. We can look at the rtw88 driver later. |
@morrownr can you guide me what exactly you want to see in this issue? You want me to install rtw88 again, and show all messages from terminal? EDIT 2024-10-09 19:23: |
That would explain it. Both drivers can work with secure mode but some distros can be problematic. |
Please test this patch, especially if your CPU has more than two core or it's not x86: lwfinger/rtw88#205 (comment) Unrelated to that bug, someone once reported seeing "failed to get tx report from firmware" every five minutes or so. I found what was causing it and there will be a patch for that too. |
Hi @dubhater and @morrownr! I have a Seeing this comment and the fact that the old From
specifically: |
Archer T2U Plus has no Bluetooth but rtw88 runs the Bluetooth coexistence code anyway. It seems harmless so far. Originally, rtw88 supported four PCI devices which all have Bluetooth built in, so they had no reason to check for it. |
If my memory is correct, the rtl8812au chip never had BT capability. There was never a version of that chip that had it at all. The rtl8821au chip did have BT capability. The version of the rtl8821au that does not have BT is called rtl8811au. I think Dubhater has a rtl8821au based adapter and if I recall correctly, he said it worked at some point but performance was not that good. |
Thanks for you help! |
More for my own curiosity: are there any examples of logs/modules/hardware where bluetooth works for |
I would not put much faith in that. Experience speaking here. Tell me what the VID/PID is?
That is wifi stuff.
Yes
I have a rtl8821cu adapter. BT works. I'm no expert with BT. What would help you? |
lsusb doesn't do any hardware detection, it just pulls the description from a database: https://usb-ids.gowdy.us/ The modules rtw_8821au and rtw_8821a handle both RTL8821AU and RTL8811AU, because they are the same chip. One has bluetooth, the other doesn't. You can tell if your device has bluetooth by checking the number of USB interfaces. This one has bluetooth. It has "bNumInterfaces 3": % lsusb -v -d 7392:b611
And if you look further down in the output, the first two interfaces have "bInterfaceProtocol 1 Bluetooth". This one doesn't have bluetooth. It has only one USB interface: % lsusb -v -d 2357:011e
|
OK, thanks for the clarifications! |
Hi, |
@kladier I don't have a card like that. I can only fix the driver if I have the card. |
I've just dug my Edimax EW-7811UTC (7392:a811) out of a drawer tonight and dusted it off. I was originally planning to use this with a RasPi, but I wound up connecting it to my StarFive VisionFive2 board instead (quad core RISC-V jh7110). I was able to successfully compile and install this driver on this RISC-V platform without issue, and, while I'm not entirely making use of it yet, wifi scanning does work. I'll run further tests with it over the next several days, if not weeks - but so far, it's working well. |
The lwfinger/rtw88 drivers for the rtl8812au/rtl8821au work fine in Arch with my TP-Link adapters. I have stopped using the vendor driver :) Also, I maintain a small repository to compile lwfinger/rtw88 modules for OpenWrt in case someone wants to use their adapter on a router: https://github.com/LuisMitaHL/rtw88-openwrt OpenWrt also has a PR backporting official support, using Linux 6.13 patches: openwrt/openwrt#17079 |
I need to update the 1st message status: This driver went into kernel 6.13 over the last week or so. ...so, once you get to kernel 6.13 or later, you won't even need to compile anything. Cool, huh? |
Greetings to anyone that reads this message.
This Issue is where we coordinate and take bug report for the new 8821a in-kernel driver.
An effort is underway to add support for the rtl8821/11au chipset to the rtw88 in-kernel driver series. The driver is available for testing at the following repo:
https://github.com/lwfinger/rtw88
Remember to first remove the out-of-kernel driver in this repo or whatever repo you may have installed. You can run the following to remove it if using this repo:
$ sudo sh remove-driver.sh
It is important to follow the instructions in the README at the repo with the new test driver. You may not be familiar with rtw88 in the kernel but even if you are, there are some necessary mods that you need to know about. The rtw88 that has this new driver is more advanced than the rtw88 in stable kernels as it follows wireless-next and is used to work on and develop new drivers.
We welcome you to test and report on this new driver. Your testing will help us get this new driver in the Linux kernel sooner and in better shape. We do have specific needs. The most immediate need is to find users that have adapters that have bluetooth support (rtl8821au chip). The current developers only have adapters that have rtl8811au chips so we need help. We also need testers with old laptps that have the rtl8821ae chip.
If you are aware of anyone who is familiar with mac80211 drivers, please invite them as more eyes on the code is a good thing. Your ideas are most welcome. We can do this.
@morrownr
Status report:
Managed mode (client) appears to be in really good shape. No outstanding issues.
Monitor mode appears to be in good shape but Active Monitor mode is not supported yet.
AP mode is in good shape but AP Mode DFS channels are not supported (this common on usb wifi adapters). This is an issue that needs to be investigated but should not slow down the upstreaming of this driver.
P2P mode is in good shape.
IBSS mode has not been tested yet. Please test and report.
Overall: the driver appears to be in good shape. Please test and report your results.
The text was updated successfully, but these errors were encountered: