-
Notifications
You must be signed in to change notification settings - Fork 172
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
News: [PATCH v5 00/11] RTW88: Add support for USB variants (several Realtek in-kernel drivers coming soon) #155
Comments
Update: 11 patches applied to wireless-next.git, thanks. 1d8966049440 wifi: rtw88: print firmware type in info message It appears that this coming faster than I expected it to happen. |
I made a fork of https://github.com/lwfinger/rtw88 with all the rtw88_usb patches applied: https://github.com/981213/rtw88 update: My PR has been merged into the original repo: lwfinger/rtw88#107 |
Confirmation: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=fba119cee141 It looks like the patch is going into kernel 6.2 |
How is the quality of that driver?
Is it based on Realtek cr^p?
Dec. 12, 2022 16:14:38 Nick ***@***.***>:
… Confirmation:
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=fba119cee141
It looks like the patch is going into kernel 6.2
—
Reply to this email directly, view it on GitHub[#155 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AACKGAJS7CMAZLN4SUCMQETWM6ITXANCNFSM6AAAAAASOTB5FU].
You are receiving this because you are subscribed to this thread.[Tracking image][https://github.com/notifications/beacon/AACKGANA64VLVYJSO5MGJXLWM6ITXA5CNFSM6AAAAAASOTB5FWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSQJ3A52.gif]
|
Unknown. I have been planning on testing once it made it into the mainline kernel so maybe in a couple of weeks when rc1 comes out. I downloaded the above and went so far as to compile it but I stopped there as I'm right is the middle of trying to bring a new out-of-kernel for the 8821cu online so I don't need two messes going at the same time. I will say that compiling and installing that link should only be tried by those with a 3rd degree black belt in compiler dev because the README (docs) will do little more than confuse most people...and it will make a mess of some systems as well. Remember, Maybe @981213 can comment on the quality. |
I just tried kernel 6.2 rc1 on Fedora 36 with a
journalctl:
I don't see a wifi interface afterwards. I saw some recommendations to use
|
If you get that device id and the adapter is a multi-state adapter then usb_modeswitch has already done its job. I'm not aware of any mainstream distros that don't start usb_modeswitch with systemd. If an adapter is a multi-state adapter that is not being switched, it will have a device id. There are a few that are used but you will get a CD or flash driver icon on the desktop. I compiled 6.2-rc1 here on Monday and was able to do some testing. It worked here on Xubuntu 22.10. The performance was slow. I had to break off testing to work on other things but will take another look when I can. If you have the 8821cu driver that I have here installed, remove it as it will blacklist the in-kernel driver. |
Which device did you test? I have a "Techkey AC600M (dual band wireless adapter model 5B10)" which triggered the "rfe 38 isn't supported" error. Ping-Ke proposed a patch which works for me though I could not establish a wireless connection afterwards. |
My adapter shows: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC It is a single state, wifi only adapter made by Edup. To be specific, it is an EDUP EP-AC1635. I have seen rfe errors with 8821cu adapters on several occasions. Here is what I think is a good idea: I am going to add your name to a private repo where myself and some others are working on an updated 8821cu out-of-kernel driver based on newer source than the driver I currently have up. You will get an invitation email in a little while. Post a message in issues once you are there restating this issue so that others know. I will then point you to the rfe documentation and suggest where you should start. I think this will allow you to tighten down exactly what the problem is so that the info can be reporte to Sasha. Nick |
I only performed a 1-minute iperf3 test using this driver and nothing blows up during that :) The upstream driver is missing the USB3.0 mode switch. My card starts in USB2.0. Without the mode switch I'm stuck in this mode and the iperf speed is about 100Mbps. |
The one in the kernel? Which chipset does your adapter use? |
Yes.
I guess it's an RTL8812BU because the USB PID is B812 and I was using the 88x2bu driver before this upstream one. |
Okay. We were talking about adapters that use a chipset that can't do USB3 so I had to scratch me head when you said there is no USB3 switch. With in-kernel drivers, there is no switch for USB3. If the driver detects that all is good for USB3 it uses USB3 without any switch. If you want to limit the adapter to USB2, plug it into a USB2 port. |
It can. When using https://github.com/morrownr/88x2bu-20210702 with rtw_switch_usb_mode=1, the adapter appears as a USB2.0 device, immediately ejected by the driver and reappears as a USB3.0 device. |
I tried to find 8812bu in the rtw88 driver and found my device TP-LINK Archer T3U Plus defaulting to the in-kernel rtw8822bu driver, as can be seen here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/wireless/realtek/rtw88/rtw8822bu.c?h=v6.4-rc3&id=59a3a312009723e3e5082899655fdcc420e2b47a I have not yet tried the in-kernel drivers, but will do so at one point. Until now I have been using your out-of kernel driver 88x2bu-20210702 driver. It is very confusing. Why is 8812bu never mentioned in the in-kernel driver anywhere? |
It is very confusing. Why is 8812bu never mentioned in the in-kernel driver anywhere?
I'm not sure but I'll guess.
TP-Link has a habit of releasing the same product code with different chipsets so they are a very bad vendor and don't get listed here.
I think Dlink is the same.
|
Anything to confuse users us worth doing. Just kidding. The realtek out-of-kernel driver that I maintain here is called rtw8812bu. The module it makes is called 8812bu.ko. You can see it with lsmod but it won't show the ,ko. The internal driver goes by the name rtw88_8812bu and the module iscalled rtw88_8812bu.ko. The in-kernel driver went in with kernel 6.2 but I'd recommend waiting until kernel 6.3 to try it. With kernel 6.3, it is a pretty good driver and is getting better. My driver will automatically blacklist the in-kernal driver so you need to use my remove-driver.sh script to remove my driver and allow the in-kernel driver to work. FWIW: I had nothing to do with naming in the out-of-kernel driver. That is all on Realtek. |
Sorry, I still cannot find 8812. I looked here: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/wireless/realtek/rtw88?h=v6.4-rc3 |
Oh, you won't. The 8812 is just a variant of the 8822 that does not include bluetooth. I probably messed up in my previous message as I forget about that because you almost never see an adapter based on the 8822bu chipset because if bluetooth is active, the adapter is limited to USB2 and who wants that on an adapter that is capable of USB3. |
Ah, I get it. Thank you :-) |
Maybe this should be commented in the code somewhere or there should be a separate "fake" file for such chipsets. |
Have you ever had a bad day? I need to be quiet when I don't have time to think before answering. The out-of-kernel driver for the 8822bu and 8812bu is: NAME="rtl88x2bu" Now, I should be quiet until I have time to think about my answers. |
The subject patch series, which was posted yesterday, is designed to add in-kernel driver support to the following usb chipsets:
rtw8822bu
rtw8812bu
rtw8821cu
rtw8811cu
rtw8822cu
rtw8812cu
/rtw8723du
The drivers:
/rtw88/rtw8723du.ko
/rtw88/rtw8821cu.ko
/rtw88/rtw8822bu.ko
/rtw88/rtw8822cu.ko
This latest patch set is v4. I have watched this year as improvements have been made. While I have not had time to test, indications are that these drivers are in reasonable shape at this point and could possibly be merged to mainline in the not so distant future. This code should not go to staging as many drivers must as they mature because this patch set is being applied to the existing in-kernel driver called rtw88 which supports the PCIe (and other) variants of the same chipsets so this patch set is simply to add usb support. This support would cover the modern Realtek AC1200 and AC600 chipsets as mentioned above which would dramatically increase the variety of usb wifi adapters that are supported with in-kernel Linux drivers.
Nick
The text was updated successfully, but these errors were encountered: