RinCat / RTL88x2BU-Linux-Driver

Realtek RTL88x2BU WiFi USB Driver for Linux
GNU General Public License v2.0
1.26k stars 197 forks source link

TP-Link Archer T3U [Realtek RTL8812BU] Download speed problem 6.0.2-arch1-1 #160

Open newedgex opened 2 years ago

newedgex commented 2 years ago

Hi, Below is my configuration and tests (multiple) and it seems that the only way to have at least a bearable speed is to have the dongle plugged into a 2.0 USB while being connected to a 5Ghz AP, all the rest have very slow downloads. It seems to be affecting only the download though, the upload seems to not be affected.

Below the results of my tests and configurations :

Config 1 (USB 3.0)

- Linux ws 6.0.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 15 Oct 2022 14:00:49 +0000 x86_64 GNU/Linux
- aur/rtl88x2bu-dkms-git 5.13.1.r166.3d25a90-1 (+41 1.37) (Installed: 5.13.1.r173.88f80f7-1)
- Bus 002 Device 002: ID 2357:012d TP-Link Archer T3U [Realtek RTL8812BU]
- Port 4: Dev 2, If 0, Class=Vendor Specific Class, Driver=rtl88x2bu, 5000M
- USB 3.0 Port , config forced with 
cat /etc/modprobe.d/99-RTL88x2BU.conf 
options 88x2bu rtw_switch_usb_mode=1

Test 1 : 2.4Ghz AP

fast.com Results : 
- Down : 10Mbps
- Up   : 8.6Mbps 
Verbose Logs during test : https://pastebin.com/EdQ09hSS 
speedtest.net Results : 
- Down : 2.8Mbps
- Up : 9.59Mbps
Verbose Logs during this test : https://pastebin.com/iiNuJgCV 

Test 2 : 5Ghz AP

fast.com Results : 
- Down : 1.1Mbps
- Up   : 8.7Mbps 
Verbose Logs during test : https://pastebin.com/D67QunwH
speedtest.net Results : 
- Down : 1.29Mbps
- Up   : 9.68Mbps
Verbose Logs during this test : same kind of log as with the rest

===================================== Config 2 (USB 3.0) without forcing 3.0

- Linux ws 6.0.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 15 Oct 2022 14:00:49 +0000 x86_64 GNU/Linux
- aur/rtl88x2bu-dkms-git 5.13.1.r166.3d25a90-1 (+41 1.37) (Installed: 5.13.1.r173.88f80f7-1)
- Bus 002 Device 002: ID 2357:012d TP-Link Archer T3U [Realtek RTL8812BU]
- |__ Port 4: Dev 2, If 0, Class=Vendor Specific Class, Driver=rtl88x2bu, 5000M
- USB 3.0 Port , config NOT forced through modprobe.
NOTE: since it's still 5000M it's the same config as with Config 1 section so results won't change.

===================================== Config 3 (USB 2.0)

- Linux ws 6.0.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 15 Oct 2022 14:00:49 +0000 x86_64 GNU/Linux
- aur/rtl88x2bu-dkms-git 5.13.1.r166.3d25a90-1 (+41 1.37) (Installed: 5.13.1.r173.88f80f7-1)
- Bus 001 Device 007: ID 2357:012d TP-Link Archer T3U [Realtek RTL8812BU]
- __ Port 10: Dev 7, If 0, Class=Vendor Specific Class, Driver=rtl88x2bu, 480M
- USB 2.0 Port , confirmed also by the 480M

Test 1 : 2.4Ghz AP

fast.com Results : 
- Down : 15Mbps
- Up   : 9.1Mbps 
Verbose Logs during test : https://pastebin.com/JqXK2C9g

speedtest.net Results : 
- Down : 16.62Mbps
- Up : 9.73Mbps
Verbose Logs during this test : -||- 

Test 2 : 5Ghz AP

fast.com Results :

- Down : 34 Mbps
- Up   : 9.7 Mbps 
Verbose Logs during test : https://pastebin.com/D67QunwH

speedtest.net Results : 
- Down : 37.4 Mbps
- Up   : 9.73 Mbps
Verbose Logs during this test : same kind of log as with the rest 

I have already verified with multiple devices (other Arch linux laptops) having no problem whatsoever getting the full available bandwidth from the same exact AP (both 2.4Ghz and 5Ghz)

newedgex commented 2 years ago

Note : The verbose logs when the interface is idle :

Oct 22 13:23:12 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:12 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:12 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:12 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:13 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:13 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:13 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:13 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:13 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:13 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:13 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:13 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:13 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:13 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:13 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:13 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:13 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:13 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:13 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:13 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:13 ws kernel: RTW: [HALMAC][TRACE]cfg_usb_rx_agg_88xx ===>
Oct 22 13:23:13 ws kernel: RTW: [HALMAC][TRACE]cfg_usb_rx_agg_88xx <===
Oct 22 13:23:13 ws kernel: RTW: H2C-PwrMode Parm:20 01 21 01  00 04 00 93  
Oct 22 13:23:13 ws kernel: RTW: [HALMAC][TRACE]get_hw_value_8822b ===>
Oct 22 13:23:13 ws kernel: RTW: [HALMAC][TRACE]get_hw_value_88xx ===>
Oct 22 13:23:13 ws kernel: RTW: [HALMAC][TRACE]get_hw_value_88xx <===
Oct 22 13:23:13 ws kernel: RTW: rtl8822b_c2h_handler_no_io: C2H, ID=50 seq=99 len=28
Oct 22 13:23:13 ws kernel: RTW: [HALMAC][TRACE]get_hw_value_8822b ===>
Oct 22 13:23:13 ws kernel: RTW: [HALMAC][TRACE]get_hw_value_88xx ===>
Oct 22 13:23:13 ws kernel: RTW: [HALMAC][TRACE]get_hw_value_88xx <===
Oct 22 13:23:13 ws kernel: RTW: [HALMAC][TRACE]cfg_csi_rate_88xx ===>
Oct 22 13:23:13 ws kernel: RTW: rtl8822b_fillh2ccmd(wlp0s20f0u4): id=0x42 buf= 0x00 0x00 0x2b 0x04 0x00 0x00 0x04
Oct 22 13:23:13 ws kernel: RTW: H2C-PwrMode Parm:20 01 21 01  00 00 00 93  
Oct 22 13:23:13 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:13 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:13 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:13 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:14 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:14 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:14 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:14 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:14 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:14 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:14 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:14 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:14 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:14 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:14 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)
Oct 22 13:23:14 ws kernel: RTW: unknown vendor specific information element ignored (vendor OUI 00:e0:4c len=6)
Oct 22 13:23:14 ws kernel: RTW: Unknown Broadcom information element ignored (type=52 len=26)

During download / when the interface has traffic :

Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]chksum disable
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx ===>
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx <===
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]chksum disable
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx ===>
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx <===
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]chksum disable
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx ===>
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx <===
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]chksum disable
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx ===>
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx <===
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]chksum disable
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx ===>
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx <===
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]chksum disable
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx ===>
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx <===
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]chksum disable
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx ===>
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx <===
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]chksum disable
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx ===>
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx <===
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]chksum disable
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx ===>
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx <===
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]chksum disable
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx ===>
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx <===
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]chksum disable
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx ===>
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx <===
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]chksum disable
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx ===>
Oct 22 13:23:58 ws kernel: RTW: [HALMAC][TRACE]get_usb_bulkout_id_88xx <===