morrownr / 88x2bu-20210702

Linux Driver for USB WiFi Adapters that are based on the RTL8812BU and RTL8822BU Chipsets - v5.13.1
Other
977 stars 177 forks source link

Dual TP-LINK AC1300 adapter setup not working #222

Closed ioaur closed 5 months ago

ioaur commented 5 months ago

I am using two TP-LINK AC1300 adapter on a RPI 4b+

2024-06-04T15:07:06.8713075Z : --------------------------- 2024-06-04T15:07:06.8714046Z : install-driver.sh v20240222 2024-06-04T15:07:06.8714607Z : aarch64 (kernel architecture) 2024-06-04T15:07:06.8714941Z : arm64 (architecture to send to gcc) 2024-06-04T15:07:07.0037737Z : 2/2 (in-use/total processing units) 2024-06-04T15:07:07.0038325Z : 7087680 (total system memory) 2024-06-04T15:07:07.0038954Z : 6.1.21-v8+ (kernel version) 2024-06-04T15:07:07.0987051Z : gcc-11 (version of gcc used to compile the kernel) 2024-06-04T15:07:07.1638339Z : gcc (Debian 10.2.1-6) 10.2.1 20210110 2024-06-04T15:07:08.5342387Z : dkms:2.8 2024-06-04T15:07:08.5343096Z : mokutil not installed (Secure Boot status unknown) 2024-06-04T15:07:08.5343699Z : --------------------------- 2024-06-04T15:07:08.5343877Z 2024-06-04T15:07:08.5344113Z Checking for previously installed drivers... 2024-06-04T15:07:10.0076434Z Finished checking for and removing previously installed drivers. 2024-06-04T15:07:10.0077661Z : --------------------------- 2024-06-04T15:07:10.0078484Z 2024-06-04T15:07:10.0078761Z Starting installation. 2024-06-04T15:07:10.0079060Z Installing 88x2bu.conf to /etc/modprobe.d 2024-06-04T15:07:10.0569173Z The dkms installation routines are in use. 2024-06-04T15:07:10.0570093Z Copying source files to /usr/src/rtl88x2bu-5.13.1 2024-06-04T15:07:12.5755053Z 2024-06-04T15:07:12.5758509Z Creating symlink /var/lib/dkms/rtl88x2bu/5.13.1/source -> 2024-06-04T15:07:12.5759067Z /usr/src/rtl88x2bu-5.13.1 2024-06-04T15:07:12.6645095Z 2024-06-04T15:07:12.6645773Z DKMS: add completed. 2024-06-04T15:07:12.6690011Z The driver was added to dkms successfully. 2024-06-04T15:07:12.6690648Z : --------------------------- 2024-06-04T15:07:12.6690797Z 2024-06-04T15:07:15.6763584Z 2024-06-04T15:07:15.6765726Z Kernel preparation unnecessary for this kernel. Skipping... 2024-06-04T15:07:15.8557079Z 2024-06-04T15:07:15.8557870Z Building module: 2024-06-04T15:07:17.4248815Z cleaning build area... 2024-06-04T15:20:51.8068838Z kernelver=6.1.21-v8+ ./dkms-make.sh........................................................................................................................................................................................................................................................................... 2024-06-04T15:21:07.0004481Z cleaning build area... 2024-06-04T15:21:07.2310015Z 2024-06-04T15:21:07.2310785Z DKMS: build completed. 2024-06-04T15:21:07.2403056Z The driver was built by dkms successfully. 2024-06-04T15:21:07.2403794Z : --------------------------- 2024-06-04T15:21:10.9035774Z 2024-06-04T15:21:10.9037889Z 88x2bu.ko.xz: 2024-06-04T15:21:10.9042900Z Running module version sanity check. 2024-06-04T15:21:11.4415786Z - Original module 2024-06-04T15:21:11.4701639Z - No original module exists within this kernel 2024-06-04T15:21:11.4702219Z - Installation 2024-06-04T15:21:11.4704080Z - Installing to /lib/modules/6.1.21-v8+/updates/dkms/ 2024-06-04T15:21:11.6598617Z 2024-06-04T15:21:22.0849257Z depmod...... 2024-06-04T15:21:22.0850008Z 2024-06-04T15:21:22.0850489Z DKMS: install completed. 2024-06-04T15:21:22.0931590Z The driver was installed by dkms successfully. 2024-06-04T15:21:22.0932196Z : --------------------------- 2024-06-04T15:21:22.0932391Z 2024-06-04T15:21:22.0934211Z Info: Update this driver with the following commands as needed: 2024-06-04T15:21:22.0934396Z 2024-06-04T15:21:22.0934592Z $ git pull 2024-06-04T15:21:22.0934861Z $ sudo sh install-driver.sh 2024-06-04T15:21:22.0935013Z 2024-06-04T15:21:22.0935229Z Note: Updates to this driver SHOULD be performed before distro 2024-06-04T15:21:22.0935490Z upgrades such as Ubuntu 23.10 to 24.04. 2024-06-04T15:21:22.0935735Z Note: Updates to this driver SHOULD be performed before major 2024-06-04T15:21:22.0937111Z upgrades such as kernel 6.5 to 6.6. 2024-06-04T15:21:22.0937369Z Note: Updates can be performed as often as you like. It is 2024-06-04T15:21:22.0937627Z recommended to update at least every 3 months. 2024-06-04T15:21:22.0938236Z Note: Work on this driver, like the Linux kernel, is continuous. 2024-06-04T15:21:22.0938397Z 2024-06-04T15:21:22.0938587Z Enjoy!

morrownr commented 5 months ago

I can't get both adapters to do their job at the same time.

And you won't. You can thank Realtek for this oversight.

I can suggest some alternative solutions if you want.

ioaur commented 5 months ago

The problem seems to be with the initial connection for the second adapter. If it's first connected to a WiFi network, both adapters do their job perfectly.

An alternative solution would be greatly appreciated. Also, a huge thank you for your work and quick response!

morrownr commented 5 months ago

I did some retesting after a recent request. Things can change and I had not looked at this issue for a while.

What I found was that adapters based on the following chips using in-kernel drivers do support more than one adapter with the same chipset:

mt7610u (AC600) mt7612u (AC1200) mt7921au (AXE3000)- the driver is mt7921u rtw88 - I tested the 8812bu chipset. Instead of the in-kernel rtw88, you might try:

https://github.com/lwfinger/rtw88

It is a downstream of the in-kernel driver and usually stays ahead of the in-kernel version. It does require manual installation so follow the README.

ioaur commented 5 months ago

Again, thank you for your answers and time. Since you answered all my questions, I'll go ahead and close this issue.

morrownr commented 5 months ago

Good luck.

One thing I forgot to mention: rtw88, both the in-kernel version and the one I provided the link for, do not support USB3 yet. Hopefully that can be corrected later this year and it may not be an issue for you anyway.

To put things in perspective, while Realtek provided and supports rtw88, they only support it for cards, not the slow buses like USB and SDIO so these have to be supported by the Linux community. That contrasts greatly with the full support we get from Mediatek. Mediatek does not discriminate against us USB users,