USB-WiFi icon indicating copy to clipboard operation
USB-WiFi copied to clipboard

[Help]: MT7922e Wi-Fi6 speed not ideal

Open Williamclouf opened this issue 8 months ago • 16 comments

Checklist

  • [x] I acknowledge that support is provided on a best-effort basis.
  • [x] I acknowledge that the authors and contributors to this repository cannot be held responsible for the results of my use of any information contained in or linked from this repository.

uname

Linux 6.1.99 #32 SMP Mon Jan 20 15:50:32 CST 2025 aarch64 aarch64 aarch64 GNU/Linux

lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub 
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub 
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 
Bus 006 Device 002: ID 13d3:3568 IMC Networks Wireless_Device

rfkill

0: phy0: Wireless LAN Soft blocked: no Hard blocked: no

dkms

/

iw

phy#0
	Interface wlan0
		ifindex 4
		wdev 0x1
		addr 14:13:33:6e:ee:15
		ssid mt7922
		type AP
		channel 36 (5180 MHz), width: 80 MHz, center1: 5210 MHz
		txpower 3.00 dBm
		multicast TXQ:
			qsz-byt	qsz-pkt	flows	drops	marks	overlmt	hashcol	tx-bytes	tx-packets
			0	0	11304	0	0	0	60	4760957		17923

What happened?

I am using an MT7922 PCIe card, serving as an AP, everything is going well. But I heard that the mt79 driver has a 'txpower 3.00 dBm' issue. In the link https://github.com/openwrt/mt76/issues/935#issuecomment-2688143334, your comment indicates that iperf3 can achieve a speed of 1.24 Gbits/sec. I want to improve my bitrate, but I don't know if it's a txpower issue or a problem with my configuration or something else. Below is some output.

iperf3 test, done through 1 wall with about 6 m/20 feet of distance. Even when I conduct an iperf3 download test about 1 feet away from the antenna, the maximum speed is only around 400 Mbps.

$ iperf3 -c 192.168.0.1
Connecting to host 192.168.0.1, port 5201
[  5] local 192.168.0.177 port 54220 connected to 192.168.0.1 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  38.2 MBytes   319 Mbits/sec                  
[  5]   1.00-2.00   sec  38.4 MBytes   323 Mbits/sec                  
[  5]   2.00-3.00   sec  37.6 MBytes   315 Mbits/sec                  
[  5]   3.00-4.00   sec  37.8 MBytes   318 Mbits/sec                  
[  5]   4.00-5.00   sec  36.0 MBytes   302 Mbits/sec                  
[  5]   5.00-6.00   sec  38.2 MBytes   320 Mbits/sec                  
[  5]   6.00-7.00   sec  38.6 MBytes   323 Mbits/sec                  
[  5]   7.00-8.00   sec  36.1 MBytes   303 Mbits/sec                  
[  5]   8.00-9.00   sec  38.5 MBytes   324 Mbits/sec                  
[  5]   9.00-10.01  sec  36.8 MBytes   307 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.01  sec   376 MBytes   315 Mbits/sec                  sender
[  5]   0.00-10.03  sec   374 MBytes   313 Mbits/sec                  receiver

Current Network Information on the macOS client, operates in 802.11ax mode.

mt7922:
  PHY Mode:	802.11ax
  Channel:	36
  Network Type:	Infrastructure
  Security:	WPA2 Personal
  Signal / Noise:	-65 dBm / -91 dBm
  Transmit Rate:	576
  MCS Index:	4

hostapd has been upgraded to the latest following AP_Mode/Upgrade_hostapd.md

$ hostapd -v
hostapd v2.12-devel-hostap_2_11-838-g9fa657a73
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2024, Jouni Malinen <[email protected]> and contributors

Here is my hostapd-wifi6.conf

interface=wlan0
driver=nl80211
ssid=mt7922
wpa_passphrase=MyPassword
hw_mode=a
channel=36
country_code=US
ieee80211d=1
logger_syslog=-1
logger_syslog_level=2
beacon_int=100
dtim_period=2
skip_inactivity_poll=1
auth_algs=1
max_num_sta=16
macaddr_acl=0
ignore_broadcast_ssid=0
okc=1
wpa=2
wpa_pairwise=CCMP
wpa_key_mgmt=WPA-PSK WPA-PSK-SHA256
wmm_enabled=1
ieee80211n=1
ht_capab=[LDPC][HT40+][HT40-][GF][SHORT-GI-20][SHORT-GI-40][TX-STBC][RX-STBC1][MAX-AMSDU-7935][DSSS_CCK-40]
ieee80211ac=1
vht_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=42
vht_capab=[RXLDPC][SHORT-GI-80][TX-STBC-2BY1][SU-BEAMFORMEE][MU-BEAMFORMEE][RX-ANTENNA-PATTERN][TX-ANTENNA-PATTERN][RX-STBC-1][BF-ANTENNA-4][MAX-MPDU-11454][MAX-A-MPDU-LEN-EXP7]
ieee80211ax=1
he_oper_chwidth=1
he_oper_centr_freq_seg0_idx=42

Williamclouf avatar Apr 27 '25 08:04 Williamclouf