morrownr / 8814au

Linux Driver for USB WiFi Adapters that are based on the RTL8814AU Chipset
Other
509 stars 98 forks source link

(in-progress) Connecting to 2Ghz Huawei AX3 yields 5Ghz-ish connection speed and vice versa #30

Closed nikty closed 2 years ago

nikty commented 3 years ago

Strange problems here when using ASUS USB-AC68 to connect to Huawei AX3 router. When connected to 2Ghz network, the speed of connection is actualy that of 5Ghz connection (tested with iperf). Other devices (like phones) and also the same USB adapter plugged into Windows 10 host connect just fine, the result is correct speed for both frequencies.

The Linux is:

Linux debian 4.19.0-16-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64 GNU/Linux

Connection shows 2Ghz:

wlxb06ebfa94f43  IEEE 802.11bgn  ESSID:"TEST_Huawei_AX3_2Ghz"  Nickname:"WIFI@RTL8814AU"
          Mode:Managed  Frequency:2.437 GHz  Access Point: B0:CC:FE:77:85:00   
          Bit Rate:400 Mb/s   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:off
          Link Quality=100/100  Signal level=-46 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

But iperf is way too fast:

$ iperf3 -c 192.168.3.113
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.3 port 44140 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  17.3 MBytes   145 Mbits/sec    0    901 KBytes       
[  5]   1.00-2.00   sec  23.8 MBytes   199 Mbits/sec    0   1.10 MBytes       
[  5]   2.00-3.00   sec  31.2 MBytes   262 Mbits/sec    0   1.31 MBytes       
[  5]   3.00-4.00   sec  32.5 MBytes   273 Mbits/sec    0   1.47 MBytes       
[  5]   4.00-5.00   sec  30.0 MBytes   252 Mbits/sec    0   2.05 MBytes       
[  5]   5.00-6.00   sec  31.2 MBytes   262 Mbits/sec    0   2.32 MBytes       
[  5]   6.00-7.00   sec  30.0 MBytes   252 Mbits/sec    0   2.32 MBytes       
[  5]   7.00-8.00   sec  31.2 MBytes   262 Mbits/sec    0   2.32 MBytes       
[  5]   8.00-9.00   sec  32.5 MBytes   273 Mbits/sec    0   2.32 MBytes       
[  5]   9.00-10.00  sec  31.2 MBytes   262 Mbits/sec    0   2.32 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   291 MBytes   244 Mbits/sec    0             sender
[  5]   0.00-10.01  sec   289 MBytes   242 Mbits/sec                  receiver

iperf Done.

The driver is latest from git:

filename:       /lib/modules/4.19.0-16-amd64/kernel/drivers/net/wireless/8814au.ko
version:        v5.8.5.1_35583.20191029
author:         Realtek Semiconductor Corp.
description:    Realtek Wireless Lan Driver
license:        GPL
srcversion:     D77CF5AF84235DF5728F810
alias:          usb:v0846p9054d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v20F4p809Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v20F4p809Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2357p0106d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0E66p0026d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8813d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pA833d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v7392pA834d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v056Ep400Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v056Ep400Bd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p1853d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p1852d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B05p1817d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v2001p331Ad*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0BDAp8813d*dc*dsc*dp*ic*isc*ip*in*
depends:        usbcore,cfg80211
retpoline:      Y
name:           8814au
vermagic:       4.19.0-16-amd64 SMP mod_unload modversions 
parm:           rtw_wireless_mode:int
parm:           rtw_ips_mode:The default IPS mode (int)
parm:           rtw_lps_level:The default LPS level (int)
parm:           rtw_lps_chk_by_tp:int
parm:           rtw_max_bss_cnt:int
parm:           rtw_usb_rxagg_mode:int
parm:           rtw_dynamic_agg_enable:int
parm:           rtw_drv_log_level:set log level when insert driver module, default log level is _DRV_INFO_ = 4 (uint)
parm:           rtw_tx_aclt_flags:device TX AC queue packet lifetime control flags (uint)
parm:           rtw_tx_aclt_conf_default:device TX AC queue lifetime config for default status (array of uint)
parm:           rtw_tx_aclt_conf_ap_m2u:device TX AC queue lifetime config for AP mode M2U status (array of uint)
parm:           rtw_tx_bw_mode:The max tx bw for 2.4G and 5G. format is the same as rtw_bw_mode (uint)
parm:           rtw_rx_ampdu_sz_limit_1ss:RX AMPDU size limit for 1SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_rx_ampdu_sz_limit_2ss:RX AMPDU size limit for 2SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_rx_ampdu_sz_limit_3ss:RX AMPDU size limit for 3SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_rx_ampdu_sz_limit_4ss:RX AMPDU size limit for 4SS link of each BW, 0xFF: no limitation (array of uint)
parm:           rtw_vht_enable:int
parm:           rtw_vht_rx_mcs_map:VHT RX MCS map (uint)
parm:           rtw_rf_path:int
parm:           rtw_tx_nss:int
parm:           rtw_rx_nss:int
parm:           rtw_country_code:The default country code (in alpha2) (charp)
parm:           rtw_channel_plan:The default chplan ID when rtw_alpha2 is not specified or valid (int)
parm:           rtw_excl_chs:exclusive channel array (array of uint)
parm:           rtw_pci_dynamic_aspm_linkctrl:int
parm:           rtw_qos_opt_enable:int
parm:           ifname:The default name to allocate for first interface (charp)
parm:           if2name:The default name to allocate for second interface (charp)
parm:           rtw_wowlan_sta_mix_mode:int
parm:           rtw_pwrtrim_enable:int
parm:           rtw_initmac:charp
parm:           rtw_chip_version:int
parm:           rtw_rfintfs:int
parm:           rtw_lbkmode:int
parm:           rtw_network_mode:int
parm:           rtw_channel:int
parm:           rtw_mp_mode:int
parm:           rtw_wmm_enable:int
parm:           rtw_vrtl_carrier_sense:int
parm:           rtw_vcs_type:int
parm:           rtw_busy_thresh:int
parm:           rtw_ht_enable:int
parm:           rtw_bw_mode:int
parm:           rtw_ampdu_enable:int
parm:           rtw_rx_stbc:int
parm:           rtw_rx_ampdu_amsdu:int
parm:           rtw_tx_ampdu_amsdu:int
parm:           rtw_beamform_cap:int
parm:           rtw_lowrate_two_xmit:int
parm:           rtw_power_mgnt:int
parm:           rtw_smart_ps:int
parm:           rtw_low_power:int
parm:           rtw_wifi_spec:int
parm:           rtw_full_ch_in_p2p_handshake:int
parm:           rtw_antdiv_cfg:int
parm:           rtw_antdiv_type:int
parm:           rtw_drv_ant_band_switch:int
parm:           rtw_single_ant_path:int
parm:           rtw_switch_usb_mode:int
parm:           rtw_enusbss:int
parm:           rtw_hwpdn_mode:int
parm:           rtw_hwpwrp_detect:int
parm:           rtw_hw_wps_pbc:int
parm:           rtw_check_hw_status:int
parm:           rtw_led_ctrl:Led Control: 0=Always off, 1=Normal blink, 2=Always on (int)
parm:           rtw_max_roaming_times:The max roaming times to try (uint)
parm:           rtw_mc2u_disable:int
parm:           rtw_notch_filter:0:Disable, 1:Enable, 2:Enable only for P2P (uint)
parm:           rtw_hiq_filter:0:allow all, 1:allow special, 2:deny all (uint)
parm:           rtw_adaptivity_en:0:disable, 1:enable (uint)
parm:           rtw_adaptivity_mode:0:normal, 1:carrier sense (uint)
parm:           rtw_adaptivity_th_l2h_ini:th_l2h_ini for Adaptivity (int)
parm:           rtw_adaptivity_th_edcca_hl_diff:th_edcca_hl_diff for Adaptivity (int)
parm:           rtw_amplifier_type_2g:BIT3:2G ext-PA, BIT4:2G ext-LNA (uint)
parm:           rtw_amplifier_type_5g:BIT6:5G ext-PA, BIT7:5G ext-LNA (uint)
parm:           rtw_RFE_type:default init value:64 (uint)
parm:           rtw_powertracking_type:default init value:64 (uint)
parm:           rtw_GLNA_type:default init value:0 (uint)
parm:           rtw_TxBBSwing_2G:default init value:0xFF (uint)
parm:           rtw_TxBBSwing_5G:default init value:0xFF (uint)
parm:           rtw_OffEfuseMask:default open Efuse Mask value:0 (uint)
parm:           rtw_FileMaskEfuse:default drv Mask Efuse value:0 (uint)
parm:           rtw_rxgain_offset_2g:default RF Gain 2G Offset value:0 (uint)
parm:           rtw_rxgain_offset_5gl:default RF Gain 5GL Offset value:0 (uint)
parm:           rtw_rxgain_offset_5gh:uint
parm:           rtw_rxgain_offset_5gm:default RF Gain 5GM Offset value:0 (uint)
parm:           rtw_pll_ref_clk_sel:force pll_ref_clk_sel, 0xF:use autoload value (uint)
parm:           rtw_tx_pwr_by_rate:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm:           rtw_tx_pwr_lmt_enable:0:Disable, 1:Enable, 2: Depend on efuse (int)
parm:           rtw_target_tx_pwr_2g_a:2.4G target tx power (unit:dBm) of RF path A for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_2g_b:2.4G target tx power (unit:dBm) of RF path B for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_2g_c:2.4G target tx power (unit:dBm) of RF path C for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_2g_d:2.4G target tx power (unit:dBm) of RF path D for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_a:5G target tx power (unit:dBm) of RF path A for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_b:5G target tx power (unit:dBm) of RF path B for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_c:5G target tx power (unit:dBm) of RF path C for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_target_tx_pwr_5g_d:5G target tx power (unit:dBm) of RF path D for each rate section, should match the real calibrate power, -1: undefined (array of int)
parm:           rtw_tsf_update_pause_factor:num of bcn intervals to stay TSF update pause status (int)
parm:           rtw_tsf_update_restore_factor:num of bcn intervals to stay TSF update restore status (int)
parm:           rtw_phy_file_path:The path of phy parameter (charp)
parm:           rtw_load_phy_file:PHY File Bit Map (int)
parm:           rtw_decrypt_phy_file:Enable Decrypt PHY File (int)
parm:           rtw_phydm_ability:uint
parm:           rtw_halrf_ability:uint
parm:           rtw_en_napi:int
parm:           rtw_en_gro:int
parm:           rtw_iqk_fw_offload:int
parm:           rtw_ch_switch_offload:int
morrownr commented 3 years ago

@nikty

It is good to meet you. This is interesting. This is the first time I have seen someone report that their network connection is too fast.

We need to confirm what is going on. Try turning the 5GHz off in the wifi router so that the 2GHZ radio is the only one on. Then do a test. Then do the same with only the 5GHz radio on. Let's see what we get.

FYI: I may be slow to respond over the next few weeks as I am busy.

nikty commented 3 years ago

5GHz off

I turned off 5GHz and restarted router both from web interface and by unplugging it from the wall. The settings are as follows. Iperf:

$ iperf3 -c 192.168.3.113 -t 60
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.3 port 55078 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   9.00-10.00  sec  30.0 MBytes   252 Mbits/sec    0   2.89 MBytes       
[  5]  19.00-20.00  sec  32.5 MBytes   273 Mbits/sec    0   3.05 MBytes       
[  5]  29.00-30.00  sec  31.2 MBytes   262 Mbits/sec    0   3.05 MBytes       
[  5]  39.00-40.00  sec  30.0 MBytes   252 Mbits/sec    0   3.05 MBytes       
[  5]  49.00-50.00  sec  33.8 MBytes   283 Mbits/sec    0   3.05 MBytes       
[  5]  59.00-60.00  sec  32.5 MBytes   273 Mbits/sec    0   3.05 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec  1.86 GBytes   266 Mbits/sec    0             sender
[  5]   0.00-60.05  sec  1.85 GBytes   265 Mbits/sec                  receiver

iperf Done.
huawei_ax3_wifi_5ghz_disabled

2GHz off

huawei_ax3_wifi_2ghz_disabled huawei_ax3_wifi_5ghz_advanced_settings

With settings as above the results I get are like this.

$ iperf3 -c 192.168.3.113 -t 60
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.3 port 55164 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   9.00-10.00  sec  6.40 MBytes  53.7 Mbits/sec    0    317 KBytes       
[  5]  19.00-20.00  sec  5.00 MBytes  41.9 Mbits/sec    0   1.07 MBytes       
[  5]  29.00-30.00  sec  6.25 MBytes  52.4 Mbits/sec    0   1.07 MBytes       
[  5]  39.00-40.00  sec  6.25 MBytes  52.4 Mbits/sec    0   1.07 MBytes       
[  5]  49.00-50.00  sec  7.50 MBytes  62.9 Mbits/sec    0   1.07 MBytes       
[  5]  59.00-60.00  sec  7.50 MBytes  62.9 Mbits/sec    0   1.07 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec   404 MBytes  56.5 Mbits/sec   12             sender
[  5]   0.00-60.11  sec   401 MBytes  55.9 Mbits/sec                  receiver

iperf Done.

Here Bit rate shows 400 Mb/s, but more often I get 174 Mb/s.

$ sudo iwconfig
enp2s0    no wireless extensions.

wlxb06ebfa94f43  IEEE 802.11AC  ESSID:"TEST_Huawei_AX3_5G"  Nickname:"WIFI@RTL8814AU"
          Mode:Managed  Frequency:5.66 GHz  Access Point: B0:CC:FE:77:85:04   
          Bit Rate:400 Mb/s   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:off
          Link Quality=95/100  Signal level=-34 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

lo        no wireless extensions.
$ sudo iwconfig
enp2s0    no wireless extensions.

wlxb06ebfa94f43  IEEE 802.11AC  ESSID:"TEST_Huawei_AX3_5G"  Nickname:"WIFI@RTL8814AU"
          Mode:Managed  Frequency:5.7 GHz  Access Point: B0:CC:FE:77:85:04   
          Bit Rate:174 Mb/s   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:off
          Link Quality=94/100  Signal level=-24 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

lo        no wireless extensions.
nikty commented 3 years ago

I was wrong about speed of connection with Windows 10 host.

The tests above give for Win10/Driver 1030.38.0712.2019

5 Ghz is certainly slower than I would expect.

morrownr commented 3 years ago

Let's see what the following shows:

$ grep [[:alnum:]] /sys/module/8814au/parameters/*

nikty commented 3 years ago

$ grep [[:alnum:]] /sys/module/8814au/parameters/* /sys/module/8814au/parameters/if2name:wlan%d /sys/module/8814au/parameters/ifname:wlan%d /sys/module/8814au/parameters/rtw_adaptivity_en:0 /sys/module/8814au/parameters/rtw_adaptivity_mode:0 /sys/module/8814au/parameters/rtw_adaptivity_th_edcca_hl_diff:0 /sys/module/8814au/parameters/rtw_adaptivity_th_l2h_ini:0 /sys/module/8814au/parameters/rtw_ampdu_enable:1 /sys/module/8814au/parameters/rtw_amplifier_type_2g:0 /sys/module/8814au/parameters/rtw_amplifier_type_5g:0 /sys/module/8814au/parameters/rtw_antdiv_cfg:2 /sys/module/8814au/parameters/rtw_antdiv_type:0 /sys/module/8814au/parameters/rtw_beamform_cap:10 /sys/module/8814au/parameters/rtw_busy_thresh:40 /sys/module/8814au/parameters/rtw_bw_mode:33 /sys/module/8814au/parameters/rtw_channel:1 /sys/module/8814au/parameters/rtw_channel_plan:255 /sys/module/8814au/parameters/rtw_check_hw_status:0 /sys/module/8814au/parameters/rtw_chip_version:0 /sys/module/8814au/parameters/rtw_ch_switch_offload:0 /sys/module/8814au/parameters/rtw_decrypt_phy_file:0 /sys/module/8814au/parameters/rtw_drv_ant_band_switch:1 /sys/module/8814au/parameters/rtw_drv_log_level:0 /sys/module/8814au/parameters/rtw_dynamic_agg_enable:1 /sys/module/8814au/parameters/rtw_en_gro:1 /sys/module/8814au/parameters/rtw_en_napi:1 /sys/module/8814au/parameters/rtw_enusbss:0 /sys/module/8814au/parameters/rtw_FileMaskEfuse:0 /sys/module/8814au/parameters/rtw_full_ch_in_p2p_handshake:0 /sys/module/8814au/parameters/rtw_GLNA_type:0 /sys/module/8814au/parameters/rtw_halrf_ability:4294967295 /sys/module/8814au/parameters/rtw_hiq_filter:1 /sys/module/8814au/parameters/rtw_ht_enable:1 /sys/module/8814au/parameters/rtw_hwpdn_mode:2 /sys/module/8814au/parameters/rtw_hwpwrp_detect:0 /sys/module/8814au/parameters/rtw_hw_wps_pbc:1 /sys/module/8814au/parameters/rtw_initmac:(null) /sys/module/8814au/parameters/rtw_ips_mode:1 /sys/module/8814au/parameters/rtw_iqk_fw_offload:0 /sys/module/8814au/parameters/rtw_lbkmode:0 /sys/module/8814au/parameters/rtw_led_ctrl:1 /sys/module/8814au/parameters/rtw_load_phy_file:68 /sys/module/8814au/parameters/rtw_low_power:0 /sys/module/8814au/parameters/rtw_lowrate_two_xmit:1 /sys/module/8814au/parameters/rtw_lps_chk_by_tp:1 /sys/module/8814au/parameters/rtw_lps_level:0 /sys/module/8814au/parameters/rtw_max_bss_cnt:0 /sys/module/8814au/parameters/rtw_max_roaming_times:2 /sys/module/8814au/parameters/rtw_mc2u_disable:0 /sys/module/8814au/parameters/rtw_mp_mode:0 /sys/module/8814au/parameters/rtw_network_mode:0 /sys/module/8814au/parameters/rtw_notch_filter:0 /sys/module/8814au/parameters/rtw_OffEfuseMask:0 /sys/module/8814au/parameters/rtw_pci_dynamic_aspm_linkctrl:0 /sys/module/8814au/parameters/rtw_phydm_ability:4294967295 /sys/module/8814au/parameters/rtw_phy_file_path:/lib/firmware/ /sys/module/8814au/parameters/rtw_pll_ref_clk_sel:15 /sys/module/8814au/parameters/rtw_power_mgnt:2 /sys/module/8814au/parameters/rtw_powertracking_type:64 /sys/module/8814au/parameters/rtw_pwrtrim_enable:2 /sys/module/8814au/parameters/rtw_qos_opt_enable:0 /sys/module/8814au/parameters/rtw_RFE_type:64 /sys/module/8814au/parameters/rtw_rfintfs:2 /sys/module/8814au/parameters/rtw_rf_path:8 /sys/module/8814au/parameters/rtw_rx_ampdu_amsdu:0 /sys/module/8814au/parameters/rtw_rxgain_offset_2g:0 /sys/module/8814au/parameters/rtw_rxgain_offset_5gh:0 /sys/module/8814au/parameters/rtw_rxgain_offset_5gl:0 /sys/module/8814au/parameters/rtw_rxgain_offset_5gm:0 /sys/module/8814au/parameters/rtw_rx_nss:0 /sys/module/8814au/parameters/rtw_rx_stbc:1 /sys/module/8814au/parameters/rtw_single_ant_path:0 /sys/module/8814au/parameters/rtw_smart_ps:2 /sys/module/8814au/parameters/rtw_switch_usb_mode:0 /sys/module/8814au/parameters/rtw_tsf_update_pause_factor:200 /sys/module/8814au/parameters/rtw_tsf_update_restore_factor:5 /sys/module/8814au/parameters/rtw_tx_aclt_flags:0 /sys/module/8814au/parameters/rtw_tx_ampdu_amsdu:2 /sys/module/8814au/parameters/rtw_TxBBSwing_2G:255 /sys/module/8814au/parameters/rtw_TxBBSwing_5G:255 /sys/module/8814au/parameters/rtw_tx_bw_mode:33 /sys/module/8814au/parameters/rtw_tx_nss:0 /sys/module/8814au/parameters/rtw_tx_pwr_by_rate:0 /sys/module/8814au/parameters/rtw_tx_pwr_lmt_enable:0 /sys/module/8814au/parameters/rtw_usb_rxagg_mode:2 /sys/module/8814au/parameters/rtw_vcs_type:1 /sys/module/8814au/parameters/rtw_vht_enable:1 /sys/module/8814au/parameters/rtw_vht_rx_mcs_map:43690 /sys/module/8814au/parameters/rtw_vrtl_carrier_sense:2 /sys/module/8814au/parameters/rtw_wifi_spec:0 /sys/module/8814au/parameters/rtw_wireless_mode:95 /sys/module/8814au/parameters/rtw_wmm_enable:1 /sys/module/8814au/parameters/rtw_wowlan_sta_mix_mode:0

morrownr commented 3 years ago

Okay, I see something that would explain a lot of what you are seeing.

rtw_switch_usb_mode:0

This setting needs to be 1. In the driver directory run $ sudo ./edit-options.sh

You were in usb 2 mode. These Realtek drivers are like a standard transmission. You can pretty much max out 2.4 GHz wifi with usb 2 but 5 GHz wifi gets limited seriously.

Let me know what you see now.

nikty commented 3 years ago

I did tests with all possible values of rtw_switch_usb_mode.

rtw_switch_usb_mode=0

$ grep \w /sys/module/8814au/parameters/* | grep rtw_switch_usb_mode
/sys/module/8814au/parameters/rtw_switch_usb_mode:0

$ iperf3 -c 192.168.3.113                                                
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.6 port 45378 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  12.1 MBytes   102 Mbits/sec    0    481 KBytes       
[  5]   1.00-2.00   sec  11.9 MBytes  99.7 Mbits/sec    0    669 KBytes       
[  5]   2.00-3.00   sec  11.2 MBytes  94.4 Mbits/sec    0    752 KBytes       
[  5]   3.00-4.00   sec  11.2 MBytes  94.4 Mbits/sec    0    851 KBytes       
[  5]   4.00-5.00   sec  12.5 MBytes   105 Mbits/sec    0    851 KBytes       
[  5]   5.00-6.00   sec  11.2 MBytes  94.4 Mbits/sec    0    902 KBytes       
[  5]   6.00-7.00   sec  11.2 MBytes  94.4 Mbits/sec    0    902 KBytes       
[  5]   7.00-8.00   sec  12.5 MBytes   105 Mbits/sec    0   1.05 MBytes       
[  5]   8.00-9.00   sec  12.5 MBytes   105 Mbits/sec    0   1.22 MBytes       
[  5]   9.00-10.00  sec  13.8 MBytes   115 Mbits/sec    0   1.23 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   120 MBytes   101 Mbits/sec    0             sender
[  5]   0.00-10.04  sec   117 MBytes  97.4 Mbits/sec                  receiver

iperf Done.

rtw_switch_usb_mode=1

$ sudo modprobe -r 8814au
$ sudo modprobe 8814au rtw_switch_usb_mode=1

$ iperf3 -c 192.168.3.113 
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.6 port 45382 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  12.0 MBytes   101 Mbits/sec    0    411 KBytes       
[  5]   1.00-2.00   sec  11.7 MBytes  98.5 Mbits/sec    0    505 KBytes       
[  5]   2.00-3.00   sec  13.0 MBytes   109 Mbits/sec    0    536 KBytes       
[  5]   3.00-4.00   sec  10.8 MBytes  90.2 Mbits/sec    0    536 KBytes       
[  5]   4.00-5.00   sec  12.4 MBytes   104 Mbits/sec    0    608 KBytes       
[  5]   5.00-6.00   sec  12.5 MBytes   105 Mbits/sec    0    906 KBytes       
[  5]   6.00-7.00   sec  12.5 MBytes   105 Mbits/sec    0   1.04 MBytes       
[  5]   7.00-8.00   sec  13.8 MBytes   115 Mbits/sec    0   1.11 MBytes       
[  5]   8.00-9.00   sec  12.5 MBytes   105 Mbits/sec    0   1.17 MBytes       
[  5]   9.00-10.00  sec  13.8 MBytes   115 Mbits/sec    0   1.23 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   125 MBytes   105 Mbits/sec    0             sender
[  5]   0.00-10.05  sec   122 MBytes   102 Mbits/sec                  receiver

iperf Done.

rtw_switch_usb_mode=2

$ sudo modprobe -r 8814au
$ sudo modprobe 8814au rtw_switch_usb_mode=2 $ grep \w /sys/module/8814au/parameters/* | grep rtw_switch_usb_mode /sys/module/8814au/parameters/rtw_switch_usb_mode:2

$ iperf3 -c 192.168.3.113                   
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.6 port 45436 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  10.6 MBytes  89.2 Mbits/sec    0    399 KBytes       
[  5]   1.00-2.00   sec  12.2 MBytes   102 Mbits/sec    0    563 KBytes       
[  5]   2.00-3.00   sec  9.57 MBytes  80.3 Mbits/sec    0    592 KBytes       
[  5]   3.00-4.00   sec  12.4 MBytes   104 Mbits/sec    0    660 KBytes       
[  5]   4.00-5.00   sec  11.2 MBytes  94.4 Mbits/sec    0    660 KBytes       
[  5]   5.00-6.00   sec  11.2 MBytes  94.4 Mbits/sec    0    836 KBytes       
[  5]   6.00-7.00   sec  11.2 MBytes  94.4 Mbits/sec    0    998 KBytes       
[  5]   7.00-8.00   sec  12.5 MBytes   105 Mbits/sec    0   1.03 MBytes       
[  5]   8.00-9.00   sec  11.2 MBytes  94.4 Mbits/sec    0   1.09 MBytes       
[  5]   9.00-10.00  sec  12.5 MBytes   105 Mbits/sec    0   1.09 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   115 MBytes  96.2 Mbits/sec    0             sender
[  5]   0.00-10.04  sec   112 MBytes  93.5 Mbits/sec                  receiver

iperf Done.
nikty commented 3 years ago

I also have adapter with 8812au chipset, tests like above give 118 / 142 / 163 for modes 0/1/2.

BTW, my system doesn't have USB 3.0.

nikty commented 3 years ago

The results seemed random, I moved away from the router (~3-4 m) and did this test:

Repeated for 8812au also (see below). 8814au doesn't even hit 100Mbit/s.

8814au

rmmod 8814au
insmod /lib/modules/4.19.0-16-amd64/kernel/drivers/net/wireless/8814au.ko rtw_switch_usb_mode=0 rtw_beamform_cap=0
/sys/module/8814au/parameters/rtw_beamform_cap:0
/sys/module/8814au/parameters/rtw_switch_usb_mode:0
Waiting for connection
Connected
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.3 port 60122 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  35.5 MBytes  59.6 Mbits/sec   11    226 KBytes       
[  5]   5.00-10.00  sec  36.8 MBytes  61.7 Mbits/sec    0    325 KBytes       
[  5]  10.00-15.00  sec  30.0 MBytes  50.4 Mbits/sec    0    897 KBytes       
[  5]  15.00-20.00  sec  26.2 MBytes  44.0 Mbits/sec    0    897 KBytes       
[  5]  20.00-25.00  sec  32.5 MBytes  54.5 Mbits/sec    0    897 KBytes       
[  5]  25.00-30.00  sec  23.8 MBytes  39.8 Mbits/sec    0    897 KBytes       
[  5]  30.00-35.00  sec  28.8 MBytes  48.2 Mbits/sec    0    897 KBytes       
[  5]  35.00-40.00  sec  31.2 MBytes  52.4 Mbits/sec    0    897 KBytes       
[  5]  40.00-45.00  sec  28.8 MBytes  48.2 Mbits/sec    0    897 KBytes       
[  5]  45.00-50.00  sec  28.8 MBytes  48.2 Mbits/sec    0    897 KBytes       
[  5]  50.00-55.00  sec  30.0 MBytes  50.3 Mbits/sec    0    897 KBytes       
[  5]  55.00-60.00  sec  27.5 MBytes  46.1 Mbits/sec    0    897 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec   360 MBytes  50.3 Mbits/sec   11             sender
[  5]   0.00-60.10  sec   357 MBytes  49.9 Mbits/sec                  receiver

iperf Done.
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.3 port 60128 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  29.1 MBytes  48.8 Mbits/sec    0    600 KBytes       
[  5]   5.00-10.00  sec  29.9 MBytes  50.2 Mbits/sec    0    704 KBytes       
[  5]  10.00-15.00  sec  31.2 MBytes  52.4 Mbits/sec    0    856 KBytes       
[  5]  15.00-20.00  sec  32.5 MBytes  54.5 Mbits/sec    0   1.28 MBytes       
[  5]  20.00-25.00  sec  27.5 MBytes  46.1 Mbits/sec    0   1.28 MBytes       
[  5]  25.00-30.00  sec  27.5 MBytes  46.1 Mbits/sec    0   1.28 MBytes       
[  5]  30.00-35.00  sec  31.2 MBytes  52.4 Mbits/sec    0   1.28 MBytes       
[  5]  35.00-40.00  sec  31.2 MBytes  52.4 Mbits/sec    0   1.28 MBytes       
[  5]  40.00-45.00  sec  30.0 MBytes  50.3 Mbits/sec    0   1.28 MBytes       
[  5]  45.00-50.00  sec  31.2 MBytes  52.4 Mbits/sec    0   1.28 MBytes       
[  5]  50.00-55.00  sec  31.2 MBytes  52.4 Mbits/sec    0   1.28 MBytes       
[  5]  55.00-60.00  sec  33.8 MBytes  56.6 Mbits/sec    0   1.28 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec   366 MBytes  51.2 Mbits/sec    0             sender
[  5]   0.00-60.06  sec   363 MBytes  50.7 Mbits/sec                  receiver

iperf Done.
rmmod 8814au
insmod /lib/modules/4.19.0-16-amd64/kernel/drivers/net/wireless/8814au.ko rtw_switch_usb_mode=0 rtw_beamform_cap=10
/sys/module/8814au/parameters/rtw_beamform_cap:10
/sys/module/8814au/parameters/rtw_switch_usb_mode:0
Waiting for connection
Connected
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.3 port 60140 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  32.7 MBytes  54.8 Mbits/sec   10    219 KBytes       
[  5]   5.00-10.00  sec  33.2 MBytes  55.7 Mbits/sec    0    313 KBytes       
[  5]  10.00-15.00  sec  35.4 MBytes  59.5 Mbits/sec    0    690 KBytes       
[  5]  15.00-20.00  sec  32.5 MBytes  54.5 Mbits/sec    0   1.05 MBytes       
[  5]  20.00-25.00  sec  31.2 MBytes  52.4 Mbits/sec    0   1.05 MBytes       
[  5]  25.00-30.00  sec  33.8 MBytes  56.6 Mbits/sec    0   1.05 MBytes       
[  5]  30.00-35.00  sec  36.2 MBytes  60.8 Mbits/sec    0   1.05 MBytes       
[  5]  35.00-40.00  sec  31.2 MBytes  52.4 Mbits/sec    0   1.05 MBytes       
[  5]  40.00-45.00  sec  32.5 MBytes  54.5 Mbits/sec    0   1.05 MBytes       
[  5]  45.00-50.00  sec  30.0 MBytes  50.3 Mbits/sec    0   1.05 MBytes       
[  5]  50.00-55.00  sec  30.0 MBytes  50.3 Mbits/sec    0   1.05 MBytes       
[  5]  55.00-60.00  sec  27.5 MBytes  46.1 Mbits/sec    0   1.05 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec   386 MBytes  54.0 Mbits/sec   10             sender
[  5]   0.00-60.07  sec   383 MBytes  53.5 Mbits/sec                  receiver

iperf Done.
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.3 port 60146 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  31.7 MBytes  53.2 Mbits/sec    0    624 KBytes       
[  5]   5.00-10.00  sec  31.2 MBytes  52.4 Mbits/sec    0    757 KBytes       
[  5]  10.00-15.00  sec  31.2 MBytes  52.4 Mbits/sec    0    757 KBytes       
[  5]  15.00-20.00  sec  30.0 MBytes  50.3 Mbits/sec    0    769 KBytes       
[  5]  20.00-25.00  sec  25.0 MBytes  41.9 Mbits/sec    0   1.17 MBytes       
[  5]  25.00-30.00  sec  25.0 MBytes  41.9 Mbits/sec    0   1.17 MBytes       
[  5]  30.00-35.00  sec  31.2 MBytes  52.4 Mbits/sec    0   1.17 MBytes       
[  5]  35.00-40.00  sec  27.5 MBytes  46.1 Mbits/sec    0   1.17 MBytes       
[  5]  40.00-45.00  sec  26.2 MBytes  44.0 Mbits/sec    0   1.17 MBytes       
[  5]  45.00-50.00  sec  27.5 MBytes  46.1 Mbits/sec    0   1.17 MBytes       
[  5]  50.00-55.00  sec  28.8 MBytes  48.2 Mbits/sec    0   1.17 MBytes       
[  5]  55.00-60.00  sec  30.0 MBytes  50.3 Mbits/sec    0   1.17 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec   345 MBytes  48.3 Mbits/sec    0             sender
[  5]   0.00-60.15  sec   342 MBytes  47.7 Mbits/sec                  receiver

iperf Done.
rmmod 8814au
insmod /lib/modules/4.19.0-16-amd64/kernel/drivers/net/wireless/8814au.ko rtw_switch_usb_mode=1 rtw_beamform_cap=0
/sys/module/8814au/parameters/rtw_beamform_cap:0
/sys/module/8814au/parameters/rtw_switch_usb_mode:1
Waiting for connection
Connected
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.3 port 60164 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  30.8 MBytes  51.7 Mbits/sec   23    211 KBytes       
[  5]   5.00-10.00  sec  29.0 MBytes  48.6 Mbits/sec    0    297 KBytes       
[  5]  10.00-15.00  sec  26.2 MBytes  43.9 Mbits/sec    0    445 KBytes       
[  5]  15.00-20.00  sec  33.4 MBytes  56.1 Mbits/sec    0    871 KBytes       
[  5]  20.00-25.00  sec  32.5 MBytes  54.5 Mbits/sec    0    871 KBytes       
[  5]  25.00-30.00  sec  30.0 MBytes  50.3 Mbits/sec    0    871 KBytes       
[  5]  30.00-35.00  sec  27.5 MBytes  46.1 Mbits/sec    0   1.30 MBytes       
[  5]  35.00-40.00  sec  28.8 MBytes  48.2 Mbits/sec    0   1.30 MBytes       
[  5]  40.00-45.00  sec  32.5 MBytes  54.5 Mbits/sec    0   1.30 MBytes       
[  5]  45.00-50.00  sec  31.2 MBytes  52.4 Mbits/sec    0   1.30 MBytes       
[  5]  50.00-55.00  sec  28.8 MBytes  48.2 Mbits/sec    0   1.30 MBytes       
[  5]  55.00-60.00  sec  32.5 MBytes  54.5 Mbits/sec    0   1.30 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec   363 MBytes  50.8 Mbits/sec   23             sender
[  5]   0.00-60.11  sec   360 MBytes  50.3 Mbits/sec                  receiver

iperf Done.
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.3 port 60168 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  38.4 MBytes  64.5 Mbits/sec    0    697 KBytes       
[  5]   5.00-10.00  sec  32.5 MBytes  54.5 Mbits/sec    0    773 KBytes       
[  5]  10.00-15.00  sec  32.5 MBytes  54.5 Mbits/sec    0    773 KBytes       
[  5]  15.00-20.00  sec  32.5 MBytes  54.5 Mbits/sec    0    773 KBytes       
[  5]  20.00-25.00  sec  32.5 MBytes  54.5 Mbits/sec    0   1.15 MBytes       
[  5]  25.00-30.00  sec  33.8 MBytes  56.6 Mbits/sec    0   1.15 MBytes       
[  5]  30.00-35.00  sec  32.5 MBytes  54.5 Mbits/sec    0   1.15 MBytes       
[  5]  35.00-40.00  sec  37.5 MBytes  62.9 Mbits/sec    0   1.15 MBytes       
[  5]  40.00-45.00  sec  35.0 MBytes  58.7 Mbits/sec    0   1.15 MBytes       
[  5]  45.00-50.00  sec  32.5 MBytes  54.5 Mbits/sec    0   1.15 MBytes       
[  5]  50.00-55.00  sec  33.8 MBytes  56.6 Mbits/sec    0   1.15 MBytes       
[  5]  55.00-60.00  sec  37.5 MBytes  62.9 Mbits/sec    0   1.15 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec   411 MBytes  57.5 Mbits/sec    0             sender
[  5]   0.00-60.07  sec   409 MBytes  57.1 Mbits/sec                  receiver

iperf Done.
rmmod 8814au
insmod /lib/modules/4.19.0-16-amd64/kernel/drivers/net/wireless/8814au.ko rtw_switch_usb_mode=1 rtw_beamform_cap=10
/sys/module/8814au/parameters/rtw_beamform_cap:10
/sys/module/8814au/parameters/rtw_switch_usb_mode:1
Waiting for connection
Connected
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.3 port 60180 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  35.0 MBytes  58.7 Mbits/sec   18    667 KBytes       
[  5]   5.00-10.00  sec  42.5 MBytes  71.3 Mbits/sec    0    950 KBytes       
[  5]  10.00-15.00  sec  35.0 MBytes  58.7 Mbits/sec    0    950 KBytes       
[  5]  15.00-20.00  sec  46.2 MBytes  77.6 Mbits/sec    0    950 KBytes       
[  5]  20.00-25.00  sec  36.2 MBytes  60.8 Mbits/sec    0    950 KBytes       
[  5]  25.00-30.00  sec  33.8 MBytes  56.6 Mbits/sec    0    950 KBytes       
[  5]  30.00-35.00  sec  35.0 MBytes  58.7 Mbits/sec    0    950 KBytes       
[  5]  35.00-40.00  sec  40.0 MBytes  67.1 Mbits/sec    0    950 KBytes       
[  5]  40.00-45.00  sec  47.5 MBytes  79.7 Mbits/sec    0   1.43 MBytes       
[  5]  45.00-50.00  sec  28.8 MBytes  48.2 Mbits/sec    0   1.43 MBytes       
[  5]  50.00-55.00  sec  32.5 MBytes  54.5 Mbits/sec    0   1.43 MBytes       
[  5]  55.00-60.00  sec  51.2 MBytes  86.0 Mbits/sec    0   1.43 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec   464 MBytes  64.8 Mbits/sec   18             sender
[  5]   0.00-60.07  sec   461 MBytes  64.4 Mbits/sec                  receiver

iperf Done.
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.3 port 60186 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  64.6 MBytes   108 Mbits/sec    0   1.33 MBytes       
[  5]   5.00-10.00  sec  55.0 MBytes  92.3 Mbits/sec    0   1.57 MBytes       
[  5]  10.00-15.00  sec  37.5 MBytes  62.9 Mbits/sec    0   1.57 MBytes       
[  5]  15.00-20.00  sec  36.2 MBytes  60.8 Mbits/sec    0   1.57 MBytes       
[  5]  20.00-25.00  sec  48.8 MBytes  81.8 Mbits/sec    0   1.57 MBytes       
[  5]  25.00-30.00  sec  63.8 MBytes   107 Mbits/sec    0   2.39 MBytes       
[  5]  30.00-35.00  sec  65.0 MBytes   109 Mbits/sec    0   2.39 MBytes       
[  5]  35.00-40.00  sec  65.0 MBytes   109 Mbits/sec    0   2.39 MBytes       
[  5]  40.00-45.00  sec  63.8 MBytes   107 Mbits/sec    0   2.39 MBytes       
[  5]  45.00-50.00  sec  63.8 MBytes   107 Mbits/sec    0   2.39 MBytes       
[  5]  50.00-55.00  sec  55.0 MBytes  92.3 Mbits/sec    0   2.39 MBytes       
[  5]  55.00-60.00  sec  51.2 MBytes  86.0 Mbits/sec    0   2.39 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec   670 MBytes  93.6 Mbits/sec    0             sender
[  5]   0.00-60.07  sec   667 MBytes  93.1 Mbits/sec                  receiver

iperf Done.
rmmod 8814au
insmod /lib/modules/4.19.0-16-amd64/kernel/drivers/net/wireless/8814au.ko rtw_switch_usb_mode=2 rtw_beamform_cap=0
/sys/module/8814au/parameters/rtw_beamform_cap:0
/sys/module/8814au/parameters/rtw_switch_usb_mode:2
Waiting for connection
Connected
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.3 port 60196 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  42.8 MBytes  71.7 Mbits/sec   12    247 KBytes       
[  5]   5.00-10.00  sec  59.0 MBytes  98.9 Mbits/sec    0    383 KBytes       
[  5]  10.00-15.00  sec  60.5 MBytes   101 Mbits/sec    0    888 KBytes       
[  5]  15.00-20.00  sec  60.0 MBytes   101 Mbits/sec    0    888 KBytes       
[  5]  20.00-25.00  sec  50.0 MBytes  83.9 Mbits/sec    0   1.30 MBytes       
[  5]  25.00-30.00  sec  60.0 MBytes   101 Mbits/sec    0   1.30 MBytes       
[  5]  30.00-35.00  sec  60.0 MBytes   101 Mbits/sec    0   1.30 MBytes       
[  5]  35.00-40.00  sec  58.8 MBytes  98.6 Mbits/sec    0   1.30 MBytes       
[  5]  40.00-45.00  sec  60.0 MBytes   101 Mbits/sec    0   1.30 MBytes       
[  5]  45.00-50.00  sec  60.0 MBytes   101 Mbits/sec    0   1.30 MBytes       
[  5]  50.00-55.00  sec  58.8 MBytes  98.6 Mbits/sec    0   1.30 MBytes       
[  5]  55.00-60.00  sec  60.0 MBytes   101 Mbits/sec    0   1.30 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec   690 MBytes  96.4 Mbits/sec   12             sender
[  5]   0.00-60.06  sec   688 MBytes  96.0 Mbits/sec                  receiver

iperf Done.
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.3 port 60208 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  63.0 MBytes   106 Mbits/sec    0    755 KBytes       
[  5]   5.00-10.00  sec  58.8 MBytes  98.6 Mbits/sec    0    796 KBytes       
[  5]  10.00-15.00  sec  60.0 MBytes   101 Mbits/sec    0    836 KBytes       
[  5]  15.00-20.00  sec  58.8 MBytes  98.6 Mbits/sec    0    836 KBytes       
[  5]  20.00-25.00  sec  60.0 MBytes   101 Mbits/sec    0    872 KBytes       
[  5]  25.00-30.00  sec  55.0 MBytes  92.3 Mbits/sec    0    872 KBytes       
[  5]  30.00-35.00  sec  61.2 MBytes   103 Mbits/sec    0    872 KBytes       
[  5]  35.00-40.00  sec  60.0 MBytes   101 Mbits/sec    0    872 KBytes       
[  5]  40.00-45.00  sec  38.8 MBytes  65.0 Mbits/sec    0   1.35 MBytes       
[  5]  45.00-50.00  sec  47.5 MBytes  79.7 Mbits/sec    0   1.35 MBytes       
[  5]  50.00-55.00  sec  42.5 MBytes  71.3 Mbits/sec    0   1.35 MBytes       
[  5]  55.00-60.00  sec  38.8 MBytes  65.0 Mbits/sec    0   1.35 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec   644 MBytes  90.1 Mbits/sec    0             sender
[  5]   0.00-60.09  sec   641 MBytes  89.6 Mbits/sec                  receiver

iperf Done.
rmmod 8814au
insmod /lib/modules/4.19.0-16-amd64/kernel/drivers/net/wireless/8814au.ko rtw_switch_usb_mode=2 rtw_beamform_cap=10
/sys/module/8814au/parameters/rtw_beamform_cap:10
/sys/module/8814au/parameters/rtw_switch_usb_mode:2
Waiting for connection
Connected
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.3 port 60220 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  47.0 MBytes  78.9 Mbits/sec   12    260 KBytes       
[  5]   5.00-10.00  sec  64.7 MBytes   109 Mbits/sec    0    402 KBytes       
[  5]  10.00-15.00  sec  70.4 MBytes   118 Mbits/sec    0   1.01 MBytes       
[  5]  15.00-20.00  sec  52.5 MBytes  88.1 Mbits/sec    0   1.88 MBytes       
[  5]  20.00-25.00  sec  48.8 MBytes  81.8 Mbits/sec    0   1.89 MBytes       
[  5]  25.00-30.00  sec  57.5 MBytes  96.5 Mbits/sec    0   1.89 MBytes       
[  5]  30.00-35.00  sec  65.0 MBytes   109 Mbits/sec    0   1.89 MBytes       
[  5]  35.00-40.00  sec  58.8 MBytes  98.6 Mbits/sec    0   1.89 MBytes       
[  5]  40.00-45.00  sec  52.5 MBytes  88.1 Mbits/sec    0   1.89 MBytes       
[  5]  45.00-50.00  sec  47.5 MBytes  79.7 Mbits/sec    0   1.89 MBytes       
[  5]  50.00-55.00  sec  65.0 MBytes   109 Mbits/sec    0   2.01 MBytes       
[  5]  55.00-60.00  sec  65.0 MBytes   109 Mbits/sec    0   2.01 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec   695 MBytes  97.1 Mbits/sec   12             sender
[  5]   0.00-60.07  sec   693 MBytes  96.8 Mbits/sec                  receiver

iperf Done.
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.3 port 60226 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  46.6 MBytes  78.2 Mbits/sec    0   1.30 MBytes       
[  5]   5.00-10.00  sec  35.0 MBytes  58.7 Mbits/sec    0   1.42 MBytes       
[  5]  10.00-15.00  sec  33.8 MBytes  56.6 Mbits/sec    0   1.42 MBytes       
[  5]  15.00-20.00  sec  32.5 MBytes  54.5 Mbits/sec    0   1.42 MBytes       
[  5]  20.00-25.00  sec  32.5 MBytes  54.5 Mbits/sec    0   1.42 MBytes       
[  5]  25.00-30.00  sec  36.2 MBytes  60.8 Mbits/sec    0   1.42 MBytes       
[  5]  30.00-35.00  sec  41.2 MBytes  69.2 Mbits/sec    0   1.42 MBytes       
[  5]  35.00-40.00  sec  55.0 MBytes  92.3 Mbits/sec    0   1.83 MBytes       
[  5]  40.00-45.00  sec  63.8 MBytes   107 Mbits/sec    0   2.34 MBytes       
[  5]  45.00-50.00  sec  65.0 MBytes   109 Mbits/sec    0   2.34 MBytes       
[  5]  50.00-55.00  sec  60.0 MBytes   101 Mbits/sec    0   2.34 MBytes       
[  5]  55.00-60.00  sec  61.2 MBytes   103 Mbits/sec    0   2.34 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec   563 MBytes  78.7 Mbits/sec    0             sender
[  5]   0.00-60.06  sec   561 MBytes  78.3 Mbits/sec                  receiver

iperf Done.

8812au

rmmod 8812au
insmod /lib/modules/4.19.0-16-amd64/updates/dkms/8812au.ko rtw_switch_usb_mode=0 rtw_beamform_cap=0
/sys/module/8812au/parameters/rtw_beamform_cap:0
/sys/module/8812au/parameters/rtw_switch_usb_mode:0
Waiting for connection
Connected
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.13 port 53214 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  80.3 MBytes   135 Mbits/sec   38    344 KBytes       
[  5]   5.00-10.00  sec  95.0 MBytes   159 Mbits/sec    0    501 KBytes       
[  5]  10.00-15.00  sec   106 MBytes   179 Mbits/sec    0    899 KBytes       
[  5]  15.00-20.00  sec   106 MBytes   178 Mbits/sec    0   1.96 MBytes       
[  5]  20.00-25.00  sec   109 MBytes   182 Mbits/sec    0   1.96 MBytes       
[  5]  25.00-30.00  sec   112 MBytes   189 Mbits/sec    0   1.96 MBytes       
[  5]  30.00-35.00  sec   112 MBytes   189 Mbits/sec    0   1.96 MBytes       
[  5]  35.00-40.00  sec   109 MBytes   182 Mbits/sec    0   1.96 MBytes       
[  5]  40.00-45.00  sec   112 MBytes   189 Mbits/sec    0   1.96 MBytes       
[  5]  45.00-50.00  sec   110 MBytes   185 Mbits/sec    0   1.96 MBytes       
[  5]  50.00-55.00  sec   111 MBytes   187 Mbits/sec    0   1.96 MBytes       
[  5]  55.00-60.00  sec   112 MBytes   189 Mbits/sec    0   1.96 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec  1.25 GBytes   179 Mbits/sec   38             sender
[  5]   0.00-60.06  sec  1.24 GBytes   178 Mbits/sec                  receiver

iperf Done.
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.13 port 53218 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec   113 MBytes   189 Mbits/sec    0   1.24 MBytes       
[  5]   5.00-10.00  sec   111 MBytes   187 Mbits/sec    0   1.61 MBytes       
[  5]  10.00-15.00  sec   106 MBytes   178 Mbits/sec    0   1.74 MBytes       
[  5]  15.00-20.00  sec   108 MBytes   180 Mbits/sec    0   1.74 MBytes       
[  5]  20.00-25.00  sec   106 MBytes   178 Mbits/sec    0   1.74 MBytes       
[  5]  25.00-30.00  sec   104 MBytes   174 Mbits/sec    0   1.74 MBytes       
[  5]  30.00-35.00  sec   101 MBytes   170 Mbits/sec    0   1.74 MBytes       
[  5]  35.00-40.00  sec  85.0 MBytes   143 Mbits/sec    0   2.52 MBytes       
[  5]  40.00-45.00  sec   101 MBytes   170 Mbits/sec    0   2.52 MBytes       
[  5]  45.00-50.00  sec   102 MBytes   172 Mbits/sec    0   2.52 MBytes       
[  5]  50.00-55.00  sec  98.8 MBytes   166 Mbits/sec    0   2.52 MBytes       
[  5]  55.00-60.00  sec   100 MBytes   168 Mbits/sec    0   2.52 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec  1.21 GBytes   173 Mbits/sec    0             sender
[  5]   0.00-60.05  sec  1.20 GBytes   172 Mbits/sec                  receiver

iperf Done.
rmmod 8812au
insmod /lib/modules/4.19.0-16-amd64/updates/dkms/8812au.ko rtw_switch_usb_mode=0 rtw_beamform_cap=10
/sys/module/8812au/parameters/rtw_beamform_cap:10
/sys/module/8812au/parameters/rtw_switch_usb_mode:0
Waiting for connection
Connected
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.13 port 53234 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  80.5 MBytes   135 Mbits/sec    1    341 KBytes       
[  5]   5.00-10.00  sec  94.8 MBytes   159 Mbits/sec    0    482 KBytes       
[  5]  10.00-15.00  sec  84.8 MBytes   142 Mbits/sec    0    614 KBytes       
[  5]  15.00-20.00  sec  76.7 MBytes   129 Mbits/sec    0    614 KBytes       
[  5]  20.00-25.00  sec  76.8 MBytes   129 Mbits/sec    0    614 KBytes       
[  5]  25.00-30.00  sec  90.7 MBytes   152 Mbits/sec    0    930 KBytes       
[  5]  30.00-35.00  sec  95.0 MBytes   159 Mbits/sec    0    930 KBytes       
[  5]  35.00-40.00  sec  88.8 MBytes   149 Mbits/sec    0    930 KBytes       
[  5]  40.00-45.00  sec  80.0 MBytes   134 Mbits/sec    0    930 KBytes       
[  5]  45.00-50.00  sec  67.5 MBytes   113 Mbits/sec    0    930 KBytes       
[  5]  50.00-55.00  sec  70.0 MBytes   117 Mbits/sec    0    930 KBytes       
[  5]  55.00-60.00  sec  72.5 MBytes   122 Mbits/sec    0    930 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec   978 MBytes   137 Mbits/sec    1             sender
[  5]   0.00-60.05  sec   975 MBytes   136 Mbits/sec                  receiver

iperf Done.
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.13 port 53238 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  86.2 MBytes   145 Mbits/sec    0    618 KBytes       
[  5]   5.00-10.00  sec  72.1 MBytes   121 Mbits/sec    0    618 KBytes       
[  5]  10.00-15.00  sec  70.8 MBytes   119 Mbits/sec    0    618 KBytes       
[  5]  15.00-20.00  sec  75.8 MBytes   127 Mbits/sec    0    618 KBytes       
[  5]  20.00-25.00  sec  74.7 MBytes   125 Mbits/sec    0    977 KBytes       
[  5]  25.00-30.00  sec  71.2 MBytes   120 Mbits/sec    0    977 KBytes       
[  5]  30.00-35.00  sec  76.2 MBytes   128 Mbits/sec    0    977 KBytes       
[  5]  35.00-40.00  sec  73.8 MBytes   124 Mbits/sec    0    977 KBytes       
[  5]  40.00-45.00  sec  75.0 MBytes   126 Mbits/sec  106    683 KBytes       
[  5]  45.00-50.00  sec  67.5 MBytes   113 Mbits/sec    0    683 KBytes       
[  5]  50.00-55.00  sec  75.0 MBytes   126 Mbits/sec    0    683 KBytes       
[  5]  55.00-60.00  sec  72.5 MBytes   122 Mbits/sec    0    683 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec   891 MBytes   125 Mbits/sec  106             sender
[  5]   0.00-60.05  sec   888 MBytes   124 Mbits/sec                  receiver

iperf Done.
rmmod 8812au
insmod /lib/modules/4.19.0-16-amd64/updates/dkms/8812au.ko rtw_switch_usb_mode=1 rtw_beamform_cap=0
/sys/module/8812au/parameters/rtw_beamform_cap:0
/sys/module/8812au/parameters/rtw_switch_usb_mode:1
Waiting for connection
Connected
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.13 port 53254 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  76.5 MBytes   128 Mbits/sec   31    338 KBytes       
[  5]   5.00-10.00  sec  88.6 MBytes   149 Mbits/sec    0    484 KBytes       
[  5]  10.00-15.00  sec  89.5 MBytes   150 Mbits/sec    0    984 KBytes       
[  5]  15.00-20.00  sec  86.2 MBytes   145 Mbits/sec    0   1.72 MBytes       
[  5]  20.00-25.00  sec  88.8 MBytes   149 Mbits/sec    0   2.71 MBytes       
[  5]  25.00-30.00  sec  90.0 MBytes   151 Mbits/sec    0   2.71 MBytes       
[  5]  30.00-35.00  sec  97.5 MBytes   164 Mbits/sec    0   2.71 MBytes       
[  5]  35.00-40.00  sec  87.5 MBytes   147 Mbits/sec    0   2.71 MBytes       
[  5]  40.00-45.00  sec  77.5 MBytes   130 Mbits/sec    0   2.71 MBytes       
[  5]  45.00-50.00  sec  82.5 MBytes   138 Mbits/sec    0   2.71 MBytes       
[  5]  50.00-55.00  sec  81.2 MBytes   136 Mbits/sec    0   2.71 MBytes       
[  5]  55.00-60.00  sec  96.2 MBytes   161 Mbits/sec    0   2.71 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec  1.02 GBytes   146 Mbits/sec   31             sender
[  5]   0.00-60.05  sec  1.01 GBytes   145 Mbits/sec                  receiver

iperf Done.
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.13 port 53258 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  94.5 MBytes   158 Mbits/sec    0   1.34 MBytes       
[  5]   5.00-10.00  sec  98.8 MBytes   166 Mbits/sec    0   1.51 MBytes       
[  5]  10.00-15.00  sec  98.8 MBytes   166 Mbits/sec    0   1.60 MBytes       
[  5]  15.00-20.00  sec  93.8 MBytes   157 Mbits/sec    0   1.60 MBytes       
[  5]  20.00-25.00  sec  97.5 MBytes   164 Mbits/sec    0   2.70 MBytes       
[  5]  25.00-30.00  sec  92.5 MBytes   155 Mbits/sec    0   2.70 MBytes       
[  5]  30.00-35.00  sec  95.0 MBytes   159 Mbits/sec    0   2.70 MBytes       
[  5]  35.00-40.00  sec  91.2 MBytes   153 Mbits/sec    0   2.70 MBytes       
[  5]  40.00-45.00  sec  93.8 MBytes   157 Mbits/sec    0   2.70 MBytes       
[  5]  45.00-50.00  sec   100 MBytes   168 Mbits/sec    0   2.70 MBytes       
[  5]  50.00-55.00  sec  98.8 MBytes   166 Mbits/sec    0   2.70 MBytes       
[  5]  55.00-60.00  sec   100 MBytes   168 Mbits/sec    0   2.70 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec  1.13 GBytes   161 Mbits/sec    0             sender
[  5]   0.00-60.05  sec  1.12 GBytes   161 Mbits/sec                  receiver

iperf Done.
rmmod 8812au
insmod /lib/modules/4.19.0-16-amd64/updates/dkms/8812au.ko rtw_switch_usb_mode=1 rtw_beamform_cap=10
/sys/module/8812au/parameters/rtw_beamform_cap:10
/sys/module/8812au/parameters/rtw_switch_usb_mode:1
Waiting for connection
Connected
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.13 port 53274 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  58.6 MBytes  98.4 Mbits/sec   23    293 KBytes       
[  5]   5.00-10.00  sec  89.5 MBytes   150 Mbits/sec    0    461 KBytes       
[  5]  10.00-15.00  sec  96.3 MBytes   162 Mbits/sec    0    970 KBytes       
[  5]  15.00-20.00  sec  98.8 MBytes   166 Mbits/sec    0   1.48 MBytes       
[  5]  20.00-25.00  sec  97.5 MBytes   164 Mbits/sec    0   2.70 MBytes       
[  5]  25.00-30.00  sec   101 MBytes   170 Mbits/sec    0   2.70 MBytes       
[  5]  30.00-35.00  sec  97.5 MBytes   164 Mbits/sec    0   2.70 MBytes       
[  5]  35.00-40.00  sec  86.2 MBytes   145 Mbits/sec    0   2.70 MBytes       
[  5]  40.00-45.00  sec  88.8 MBytes   149 Mbits/sec    0   2.70 MBytes       
[  5]  45.00-50.00  sec  98.8 MBytes   166 Mbits/sec    0   2.70 MBytes       
[  5]  50.00-55.00  sec  95.0 MBytes   159 Mbits/sec    0   2.70 MBytes       
[  5]  55.00-60.00  sec  95.0 MBytes   159 Mbits/sec    0   2.70 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec  1.08 GBytes   154 Mbits/sec   23             sender
[  5]   0.00-60.05  sec  1.07 GBytes   154 Mbits/sec                  receiver

iperf Done.
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.13 port 53278 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec   100 MBytes   168 Mbits/sec    0   1.43 MBytes       
[  5]   5.00-10.00  sec  91.2 MBytes   153 Mbits/sec    0   1.50 MBytes       
[  5]  10.00-15.00  sec  93.8 MBytes   157 Mbits/sec    0   1.50 MBytes       
[  5]  15.00-20.00  sec  98.8 MBytes   166 Mbits/sec    0   2.18 MBytes       
[  5]  20.00-25.00  sec  98.8 MBytes   166 Mbits/sec    0   2.18 MBytes       
[  5]  25.00-30.00  sec   101 MBytes   170 Mbits/sec  204   1.28 MBytes       
[  5]  30.00-35.00  sec  98.8 MBytes   166 Mbits/sec    0   1.30 MBytes       
[  5]  35.00-40.00  sec  93.8 MBytes   157 Mbits/sec    0   1.39 MBytes       
[  5]  40.00-45.00  sec  97.5 MBytes   164 Mbits/sec    0   1.59 MBytes       
[  5]  45.00-50.00  sec   100 MBytes   168 Mbits/sec    0   2.21 MBytes       
[  5]  50.00-55.00  sec  95.0 MBytes   159 Mbits/sec    0   2.21 MBytes       
[  5]  55.00-60.00  sec  95.0 MBytes   159 Mbits/sec    0   2.21 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec  1.14 GBytes   163 Mbits/sec  204             sender
[  5]   0.00-60.05  sec  1.13 GBytes   162 Mbits/sec                  receiver

iperf Done.
rmmod 8812au
insmod /lib/modules/4.19.0-16-amd64/updates/dkms/8812au.ko rtw_switch_usb_mode=2 rtw_beamform_cap=0
/sys/module/8812au/parameters/rtw_beamform_cap:0
/sys/module/8812au/parameters/rtw_switch_usb_mode:2
Waiting for connection
Connected
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.13 port 53294 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  72.9 MBytes   122 Mbits/sec   33    325 KBytes       
[  5]   5.00-10.00  sec  89.7 MBytes   150 Mbits/sec    0    485 KBytes       
[  5]  10.00-15.00  sec  95.9 MBytes   161 Mbits/sec    0    916 KBytes       
[  5]  15.00-20.00  sec   104 MBytes   174 Mbits/sec    0   2.52 MBytes       
[  5]  20.00-25.00  sec   109 MBytes   182 Mbits/sec    0   3.04 MBytes       
[  5]  25.00-30.00  sec   112 MBytes   189 Mbits/sec    0   3.04 MBytes       
[  5]  30.00-35.00  sec   110 MBytes   185 Mbits/sec    0   3.04 MBytes       
[  5]  35.00-40.00  sec   111 MBytes   187 Mbits/sec    0   3.04 MBytes       
[  5]  40.00-45.00  sec   111 MBytes   187 Mbits/sec    0   3.04 MBytes       
[  5]  45.00-50.00  sec   110 MBytes   185 Mbits/sec    0   3.04 MBytes       
[  5]  50.00-55.00  sec   109 MBytes   182 Mbits/sec    0   3.04 MBytes       
[  5]  55.00-60.00  sec   108 MBytes   180 Mbits/sec    0   3.04 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec  1.21 GBytes   174 Mbits/sec   33             sender
[  5]   0.00-60.04  sec  1.21 GBytes   173 Mbits/sec                  receiver

iperf Done.
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.13 port 53300 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec   104 MBytes   174 Mbits/sec    0   3.02 MBytes       
[  5]   5.00-10.00  sec   110 MBytes   185 Mbits/sec    0   3.02 MBytes       
[  5]  10.00-15.00  sec   106 MBytes   178 Mbits/sec    0   3.02 MBytes       
[  5]  15.00-20.00  sec   109 MBytes   182 Mbits/sec    0   3.02 MBytes       
[  5]  20.00-25.00  sec   109 MBytes   182 Mbits/sec    0   3.02 MBytes       
[  5]  25.00-30.00  sec   110 MBytes   185 Mbits/sec    0   3.02 MBytes       
[  5]  30.00-35.00  sec   110 MBytes   185 Mbits/sec    0   3.02 MBytes       
[  5]  35.00-40.00  sec   108 MBytes   180 Mbits/sec    0   3.02 MBytes       
[  5]  40.00-45.00  sec   112 MBytes   189 Mbits/sec    0   3.02 MBytes       
[  5]  45.00-50.00  sec   109 MBytes   182 Mbits/sec    0   3.02 MBytes       
[  5]  50.00-55.00  sec   105 MBytes   176 Mbits/sec    0   3.02 MBytes       
[  5]  55.00-60.00  sec   108 MBytes   180 Mbits/sec    0   3.02 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec  1.27 GBytes   182 Mbits/sec    0             sender
[  5]   0.00-60.04  sec  1.27 GBytes   181 Mbits/sec                  receiver

iperf Done.
rmmod 8812au
insmod /lib/modules/4.19.0-16-amd64/updates/dkms/8812au.ko rtw_switch_usb_mode=2 rtw_beamform_cap=10
/sys/module/8812au/parameters/rtw_beamform_cap:10
/sys/module/8812au/parameters/rtw_switch_usb_mode:2
Waiting for connection
Connected
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.13 port 53314 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec  77.2 MBytes   129 Mbits/sec   30    335 KBytes       
[  5]   5.00-10.00  sec  83.8 MBytes   141 Mbits/sec    0    475 KBytes       
[  5]  10.00-15.00  sec  96.3 MBytes   162 Mbits/sec    0    964 KBytes       
[  5]  15.00-20.00  sec  97.5 MBytes   164 Mbits/sec    0   1.82 MBytes       
[  5]  20.00-25.00  sec  98.8 MBytes   166 Mbits/sec    0   2.49 MBytes       
[  5]  25.00-30.00  sec   100 MBytes   168 Mbits/sec    0   2.49 MBytes       
[  5]  30.00-35.00  sec  98.8 MBytes   166 Mbits/sec    0   2.49 MBytes       
[  5]  35.00-40.00  sec  98.8 MBytes   166 Mbits/sec    0   2.49 MBytes       
[  5]  40.00-45.00  sec  73.8 MBytes   124 Mbits/sec    0   2.49 MBytes       
[  5]  45.00-50.00  sec  96.2 MBytes   161 Mbits/sec    0   2.49 MBytes       
[  5]  50.00-55.00  sec   102 MBytes   172 Mbits/sec    0   2.49 MBytes       
[  5]  55.00-60.00  sec  97.5 MBytes   164 Mbits/sec    0   2.49 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec  1.09 GBytes   157 Mbits/sec   30             sender
[  5]   0.00-60.05  sec  1.09 GBytes   156 Mbits/sec                  receiver

iperf Done.
Connecting to host 192.168.3.113, port 5201
[  5] local 192.168.3.13 port 53318 connected to 192.168.3.113 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-5.00   sec   101 MBytes   170 Mbits/sec    0   1.46 MBytes       
[  5]   5.00-10.00  sec   101 MBytes   170 Mbits/sec    0   1.70 MBytes       
[  5]  10.00-15.00  sec   100 MBytes   168 Mbits/sec    0   1.79 MBytes       
[  5]  15.00-20.00  sec   100 MBytes   168 Mbits/sec    0   2.11 MBytes       
[  5]  20.00-25.00  sec   101 MBytes   170 Mbits/sec    0   2.11 MBytes       
[  5]  25.00-30.00  sec  98.8 MBytes   166 Mbits/sec    0   2.11 MBytes       
[  5]  30.00-35.00  sec  98.8 MBytes   166 Mbits/sec    0   2.11 MBytes       
[  5]  35.00-40.00  sec  98.8 MBytes   166 Mbits/sec    0   2.11 MBytes       
[  5]  40.00-45.00  sec  96.2 MBytes   161 Mbits/sec    0   2.11 MBytes       
[  5]  45.00-50.00  sec  98.8 MBytes   166 Mbits/sec    0   2.11 MBytes       
[  5]  50.00-55.00  sec   100 MBytes   168 Mbits/sec    0   2.11 MBytes       
[  5]  55.00-60.00  sec  93.8 MBytes   157 Mbits/sec    0   2.11 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.00  sec  1.16 GBytes   166 Mbits/sec    0             sender
[  5]   0.00-60.05  sec  1.16 GBytes   166 Mbits/sec                  receiver

iperf Done.
morrownr commented 3 years ago

I see. Good job testing. USB 2 is limited to around 480 Mb/s so iperf3 could show up to around 240 Mb/s in a perfect world. So I guess the question is why are we not getting close to that 240 Mb/s? The small amount of retries tends to make me think you have a solid connection so what could be causing the difference in speed? A lot of things but the only things different in your tests appear to be different chipsets with different drivers.

My experience working on both the 8812au and 8814au drivers tells me that the 8812au driver is a MUCH better driver. In fact, the 8812au driver is better than any of the other 4 Realtek drivers that are maintained here. Why? I really have no idea but the versions of the drivers here are the most recent versions from Realtek that have worked their way to the public.

You may just have to play with various settings to see if anything makes a difference. I'm not a fan of letting a wifi router decide what to do so if it were me, I would look at checking the congestion so as to set a channel for both bands. Have I seen lower speeds in managed mode between the 8812au and 8814au? Yes. Nothing new there. The 8814au driver is just not a very good driver. I've been trying to find ways to get updated code from Realtek, if it exist, but have not had luck. I'm not a fan of how Realtek does its driver support. I wish we had good in-kernel drivers but we don't. That is one reason that I push folks that are asking what to buy to look at Mediatek based adapters.

nikty commented 3 years ago

@morrownr Many thanks for your support and comments!

I'm going to stop investigating this for now, but if anything interesting comes up, I'll update the ticket.

abroenni commented 3 years ago

Hi @nikty I been following this conversation and just want to add the following. I was gonna say that it could be that the antennas of the ASUS USB-AC68 may not be optimised for the 5Ghz spectrum. Yes, far fetched - I am aware. Unfortunately you cannot replace them, as it seems when looking at the device. So I googled for other iperf3 tests using this device and I found this asus-usb-ac68-wifi-test. Unfortunately only windows driver tests, but they reflect hardware capabilities nonetheless. You are using your device in STA mode (client connecting to an access point) plugged into a usb2 port. In you testing, as far as I can tell, you have been running your iperf3 in client mode on on the computer where the AC68 is plugged into. When running iperf3 the way you did, you have been testing the uplink (data flowing AC68 --> iperf3sever). This is TX. iperf3 -c 192.168.3.113 -t 60 -R would test the downlink (AC68 <--- iperf3server). This is RX. The device in USB2 mode uses more receive channels/antennas (Not quite sure.). Downlink speeds should be higher. From iper3 man page:

Normally,  the test data is sent from the client to the server, and measures the upload speed of the client.
Measuring the download speed from the server can be done by specifying the -R flag on the client.
This causes data to be sent from the  server  to the client.

              iperf3 -c iperf3.example.com -p 5202 -R

So maybe try testing in both directions. Or is that what you did, because you sent each iperf block twice?

I ran the 4 tests on a 1 core cpu laptop using a 8814au plugged into USB2 simulating a 1G file upload and download on 2.4Gz and 5Ghz with default 8814au.conf:

============
5Ghz======
============
[DOWNLINK][8814au receiving data]
./iperf3 -c 192.168.188.87 -R -n 1G
Connecting to host 192.168.188.87, port 5201
Reverse mode, remote host 192.168.188.87 is sending
[  5] local 192.168.188.139 port 45314 connected to 192.168.188.87 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  18.0 MBytes   151 Mbits/sec                  
[  5]   1.00-2.00   sec  24.6 MBytes   206 Mbits/sec                  
[  5]   2.00-3.00   sec  23.8 MBytes   200 Mbits/sec                  
...
...             
[  5]  33.00-34.00  sec  27.3 MBytes   229 Mbits/sec                  
[  5]  34.00-35.00  sec  24.5 MBytes   206 Mbits/sec                  
[  5]  35.00-36.00  sec  27.3 MBytes   229 Mbits/sec                  
[  5]  36.00-36.33  sec  8.15 MBytes   209 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-36.38  sec  1.00 GBytes   237 Mbits/sec   10             sender
[  5]   0.00-36.33  sec  1.00 GBytes   236 Mbits/sec                  receiver

iperf Done.

[UPLINK] [8814au sending data]
./iperf3 -c 192.168.188.87 -n 1G
Connecting to host 192.168.188.87, port 5201
[  5] local 192.168.188.139 port 45318 connected to 192.168.188.87 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  12.7 MBytes   106 Mbits/sec    0    423 KBytes       
[  5]   1.00-2.00   sec  10.9 MBytes  91.2 Mbits/sec    0    672 KBytes       
[  5]   2.00-3.00   sec  16.0 MBytes   134 Mbits/sec    0    790 KBytes       
[  5]   3.00-4.00   sec  9.82 MBytes  82.4 Mbits/sec    0    790 KBytes       
[  5]   4.00-5.00   sec  15.7 MBytes   132 Mbits/sec    0    830 KBytes       
[  5]   5.00-6.00   sec  9.38 MBytes  78.7 Mbits/sec    0    830 KBytes       
[  5]   6.00-7.00   sec  25.2 MBytes   212 Mbits/sec    0    888 KBytes       
[  5]   7.00-8.00   sec  23.2 MBytes   194 Mbits/sec    0    888 KBytes       
[  5]   8.00-9.00   sec  11.2 MBytes  94.4 Mbits/sec    0    888 KBytes       
[  5]   9.00-10.00  sec  22.6 MBytes   189 Mbits/sec    0    888 KBytes       
[  5]  10.00-11.00  sec  18.3 MBytes   153 Mbits/sec    0    888 KBytes       
[  5]  11.00-12.00  sec  21.1 MBytes   177 Mbits/sec    0    888 KBytes       
[  5]  12.00-13.00  sec  26.0 MBytes   218 Mbits/sec    0    888 KBytes       
[  5]  13.00-14.00  sec  20.8 MBytes   174 Mbits/sec    0    888 KBytes       
[  5]  14.00-15.00  sec  5.72 MBytes  48.0 Mbits/sec    0    888 KBytes       
[  5]  15.00-16.00  sec  0.00 Bytes  0.00 bits/sec    0    888 KBytes       
[  5]  16.00-17.00  sec   954 KBytes  7.82 Mbits/sec    0    888 KBytes       
[  5]  17.00-18.00  sec  0.00 Bytes  0.00 bits/sec    0    888 KBytes       
[  5]  18.00-19.00  sec  1.86 MBytes  15.7 Mbits/sec    0    888 KBytes       
[  5]  19.00-20.00  sec  18.4 MBytes   155 Mbits/sec    0   1.30 MBytes       
....
....
[  5]  68.00-69.00  sec  11.2 MBytes  94.4 Mbits/sec    0   1.30 MBytes       
[  5]  69.00-70.00  sec  0.00 Bytes  0.00 bits/sec    0   1.30 MBytes       
[  5]  70.00-71.00  sec  0.00 Bytes  0.00 bits/sec    0   1.30 MBytes       
[  5]  71.00-72.00  sec  6.25 MBytes  52.5 Mbits/sec    0   1.30 MBytes       
[  5]  72.00-73.00  sec  1.25 MBytes  10.5 Mbits/sec    0   1.30 MBytes       
[  5]  73.00-74.00  sec  0.00 Bytes  0.00 bits/sec    0   1.30 MBytes       
[  5]  74.00-75.00  sec  0.00 Bytes  0.00 bits/sec    0   1.30 MBytes       
[  5]  75.00-76.00  sec  1.25 MBytes  10.5 Mbits/sec    0   1.30 MBytes       
[  5]  76.00-77.00  sec  0.00 Bytes  0.00 bits/sec    0   1.30 MBytes       
[  5]  77.00-78.00  sec  0.00 Bytes  0.00 bits/sec    0   1.30 MBytes       
[  5]  78.00-79.00  sec  0.00 Bytes  0.00 bits/sec    0   1.30 MBytes       
[  5]  79.00-80.00  sec  1.25 MBytes  10.5 Mbits/sec    0   1.30 MBytes       
[  5]  80.00-81.00  sec  0.00 Bytes  0.00 bits/sec    0   1.30 MBytes       
[  5]  81.00-82.00  sec  0.00 Bytes  0.00 bits/sec    0   1.30 MBytes       
[  5]  82.00-83.00  sec  1.25 MBytes  10.5 Mbits/sec    0   1.30 MBytes       
[  5]  83.00-84.00  sec  0.00 Bytes  0.00 bits/sec    0   1.30 MBytes       
[  5]  84.00-85.00  sec  0.00 Bytes  0.00 bits/sec    0   1.30 MBytes       
[  5]  85.00-85.89  sec   512 KBytes  4.70 Mbits/sec    0   1.30 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-85.89  sec  1.00 GBytes   100 Mbits/sec    0             sender
[  5]   0.00-86.56  sec  1021 MBytes  99.0 Mbits/sec                  receiver

iperf Done.

============
2.4Ghz======
============
[DOWNLINK][8814au receiving data]
./iperf3 -c 192.168.188.87 -R -n 1G
Connecting to host 192.168.188.87, port 5201
Reverse mode, remote host 192.168.188.87 is sending
[  5] local 192.168.188.139 port 45364 connected to 192.168.188.87 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  20.8 MBytes   174 Mbits/sec                  
[  5]   1.00-2.00   sec  22.7 MBytes   190 Mbits/sec                  
[  5]   2.00-3.00   sec  23.3 MBytes   195 Mbits/sec                  
...    
[  5]  40.00-41.01  sec  23.1 MBytes   193 Mbits/sec                  
[  5]  41.01-42.00  sec  22.6 MBytes   191 Mbits/sec                  
[  5]  42.00-43.00  sec  23.5 MBytes   197 Mbits/sec                  
[  5]  43.00-44.00  sec  23.3 MBytes   196 Mbits/sec                  
[  5]  44.00-44.68  sec  15.9 MBytes   196 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-44.72  sec  1.00 GBytes   193 Mbits/sec    5             sender
[  5]   0.00-44.68  sec  1.00 GBytes   192 Mbits/sec                  receiver

iperf Done.

[UPLINK] [8814au sending data]
./iperf3 -c 192.168.188.87 -n 1G
Connecting to host 192.168.188.87, port 5201
[  5] local 192.168.188.139 port 45368 connected to 192.168.188.87 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  16.5 MBytes   138 Mbits/sec    0    646 KBytes       
[  5]   1.00-2.00   sec  15.5 MBytes   130 Mbits/sec    0    682 KBytes       
[  5]   2.00-3.00   sec  15.5 MBytes   130 Mbits/sec    0    755 KBytes       
[  5]   3.00-4.00   sec  15.4 MBytes   129 Mbits/sec    0    755 KBytes       
[  5]   4.00-5.00   sec  15.3 MBytes   128 Mbits/sec    0    755 KBytes       
[  5]   5.00-6.00   sec  15.9 MBytes   133 Mbits/sec    0    795 KBytes       
[  5]   6.00-7.00   sec  15.8 MBytes   133 Mbits/sec    0    795 KBytes       
...
[  5]  60.00-61.00  sec  16.2 MBytes   136 Mbits/sec    0   2.00 MBytes       
[  5]  61.00-62.00  sec  15.0 MBytes   126 Mbits/sec    0   2.00 MBytes       
[  5]  62.00-63.00  sec  16.2 MBytes   136 Mbits/sec    0   2.00 MBytes       
[  5]  63.00-64.00  sec  16.2 MBytes   136 Mbits/sec    0   2.00 MBytes       
[  5]  64.00-65.00  sec  16.2 MBytes   136 Mbits/sec    0   2.00 MBytes       
[  5]  65.00-65.30  sec  4.25 MBytes   118 Mbits/sec    0   2.00 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-65.30  sec  1.00 GBytes   132 Mbits/sec    0             sender
[  5]   0.00-65.35  sec  1021 MBytes   131 Mbits/sec                  receiver

iperf Done.

In 5Gz, the downlink maxes out the USB2. I also noticed on 5Ghz, the data sending (TRx) of the my device is a lot more flackier/unstable on lager files, but 2.ghz seems to fine. But that could be my antennas (I can change them). hope this helps.

nikty commented 3 years ago

Hi @abroenni

Your comment is quite insightful!

So maybe try testing in both directions. Or is that what you did, because you sent each iperf block twice?

No, I only did TX test, because its instability and speed initially triggered me. RX does indeed has higher speeds.