You are not logged in.

#1 2024-03-04 19:19:29

themusicalduck
Member
Registered: 2011-07-04
Posts: 126

[SOLVED] Getting max speed out of a 5Ghz hotspot MEDIATEK Corp. MT7922

I'm hoping to set up a 5Ghz hotspot from my laptop with wifi card: MEDIATEK Corp. MT7922 802.11ax with decent speeds. I'm connecting the hotspot to a Quest 3.

If I set up a hotspot from Windows, I can make it 5Ghz and my Quest says the link speed is 866mbps.

At first I was unable to set up 5Ghz using NetworkManager and Gnome, but was able to fix that by both editing the hotspot connection in nm-connection-editor and running sudo iw reg set GB

However after connecting, while my Quest reports the network is 5Ghz, it says the link speed is only 192mbps.

I decided to try creating a file in /etc/NetworkManger/conf.d/wifi_backend.conf with the contents

[device]
wifi.backend=iwd

and restarted NetworkManager.

I then checked nm-connection-editor and there was a new second entry for Hotspot, I set it to channel a.

On creating a hotspot, for some reason it was still only using 2.4Ghz. Interestingly the link speed was reported on the Quest as 300mbps.

I also did some experimenting with hostapd, but after working through the configuration and setting up a hotspot, the link speed was even slower. Around 180.

What can I do to make the fastest hotspot using my card? It would be great if I could match the hotspot speeds I was receiving with Windows.

Edit: I tried some different channels as well, but if I try to use any channel above 48 the hotspot creation fails and I still only get 192mbps on 48.

Thanks.

Last edited by themusicalduck (2024-03-08 21:22:21)

Offline

#2 2024-03-08 18:48:03

themusicalduck
Member
Registered: 2011-07-04
Posts: 126

Re: [SOLVED] Getting max speed out of a 5Ghz hotspot MEDIATEK Corp. MT7922

Some more discoveries.

According to iw phy phy0 info | grep Frequencies -A 24 my card supports these frequencies in the 5GHz range:

			* 5180.0 MHz [36] (23.0 dBm)
			* 5200.0 MHz [40] (23.0 dBm)
			* 5220.0 MHz [44] (23.0 dBm)
			* 5240.0 MHz [48] (23.0 dBm)
			* 5260.0 MHz [52] (20.0 dBm) (radar detection)
			* 5280.0 MHz [56] (20.0 dBm) (radar detection)
			* 5300.0 MHz [60] (20.0 dBm) (radar detection)
			* 5320.0 MHz [64] (20.0 dBm) (radar detection)
			* 5500.0 MHz [100] (26.0 dBm) (radar detection)
			* 5520.0 MHz [104] (26.0 dBm) (radar detection)
			* 5540.0 MHz [108] (26.0 dBm) (radar detection)
			* 5560.0 MHz [112] (26.0 dBm) (radar detection)
			* 5580.0 MHz [116] (26.0 dBm) (radar detection)
			* 5600.0 MHz [120] (26.0 dBm) (radar detection)
			* 5620.0 MHz [124] (26.0 dBm) (radar detection)
			* 5640.0 MHz [128] (26.0 dBm) (radar detection)
			* 5660.0 MHz [132] (26.0 dBm) (radar detection)
			* 5680.0 MHz [136] (26.0 dBm) (radar detection)
			* 5700.0 MHz [140] (26.0 dBm) (radar detection)
			* 5720.0 MHz [144] (26.0 dBm) (radar detection)
			* 5745.0 MHz [149] (23.0 dBm)
			* 5765.0 MHz [153] (23.0 dBm)
			* 5785.0 MHz [157] (23.0 dBm)
			* 5805.0 MHz [161] (23.0 dBm)

My router is running at 5260MHz and I can get full link speed to it, but if I try to use the same frequency network manager fails to start the hotspot.

If I select any channel that does not say "radar detection" next to it, the hotspot is created successfully.

So I used a wifi scanner on my phone and can see that the hotspot says 5755-5775 (20MHz) but my router says 5220-5330 (80MHz).

So the second number seems to be key. I understand this relates to bandwidth, but I don't know how to make my hotspot use 80MHz instead of 20.

The Windows hotspot was shown to be on channel 149 (155) at 80MHz. If I choose 149 with NetworkManager, it shows only 149 and 20MHz.

This is the log I get from NetworkManager when trying to use one of the frequencies that fails:

Mar 08 18:40:58 shondo NetworkManager[857]: <info>  [1709923258.7236] policy: ipv6-pd: no device to obtain a subnet to share on wlp5s0 from
Mar 08 18:46:09 shondo NetworkManager[857]: <info>  [1709923569.9488] audit: op="connection-update" uuid="6fea3d51-3e45-4be7-b3c1-d2ee03e9857d" name="Hotspot" args="802-11-wireless.channel,connection.timestamp,802-11-wireless-security.group,802-11-wireless-security.pairwise,802-11-wireless-security.proto" pid=3166 uid=60283 result="success"
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.7417] audit: op="connection-update" uuid="6fea3d51-3e45-4be7-b3c1-d2ee03e9857d" name="Hotspot" args="802-11-wireless-security.group,802-11-wireless-security.pairwise,802-11-wireless-security.proto" pid=2683 uid=60283 result="success"
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.7454] audit: op="connection-update" uuid="6fea3d51-3e45-4be7-b3c1-d2ee03e9857d" name="Hotspot" pid=2683 uid=60283 result="success"
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.7515] audit: op="connection-update" uuid="6fea3d51-3e45-4be7-b3c1-d2ee03e9857d" name="Hotspot" pid=2683 uid=60283 result="success"
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.7559] audit: op="connection-update" uuid="6fea3d51-3e45-4be7-b3c1-d2ee03e9857d" name="Hotspot" pid=2683 uid=60283 result="success"
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.7597] audit: op="connection-update" uuid="6fea3d51-3e45-4be7-b3c1-d2ee03e9857d" name="Hotspot" pid=2683 uid=60283 result="success"
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.7640] audit: op="connection-update" uuid="6fea3d51-3e45-4be7-b3c1-d2ee03e9857d" name="Hotspot" pid=2683 uid=60283 result="success"
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.7645] device (wlp5s0): state change: activated -> deactivating (reason 'new-activation', sys-iface-state: 'managed')
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.7654] device (wlp5s0): disconnecting for new activation request.
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.7654] audit: op="connection-activate" uuid="6fea3d51-3e45-4be7-b3c1-d2ee03e9857d" name="Hotspot" pid=2683 uid=60283 result="success"
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.7665] device (wlp5s0): disconnecting for new activation request.
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.7665] audit: op="connection-activate" uuid="6fea3d51-3e45-4be7-b3c1-d2ee03e9857d" name="Hotspot" pid=2683 uid=60283 result="success"
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.7880] device (wlp5s0): disconnecting for new activation request.
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.7881] audit: op="connection-activate" uuid="6fea3d51-3e45-4be7-b3c1-d2ee03e9857d" name="Hotspot" pid=2683 uid=60283 result="success"
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.7938] device (wlp5s0): disconnecting for new activation request.
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.7939] audit: op="connection-activate" uuid="6fea3d51-3e45-4be7-b3c1-d2ee03e9857d" name="Hotspot" pid=2683 uid=60283 result="success"
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.8004] device (wlp5s0): disconnecting for new activation request.
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.8005] audit: op="connection-activate" uuid="6fea3d51-3e45-4be7-b3c1-d2ee03e9857d" name="Hotspot" pid=2683 uid=60283 result="success"
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.8064] device (wlp5s0): disconnecting for new activation request.
Mar 08 18:46:14 shondo NetworkManager[857]: <info>  [1709923574.8065] audit: op="connection-activate" uuid="6fea3d51-3e45-4be7-b3c1-d2ee03e9857d" name="Hotspot" pid=2683 uid=60283 result="success"
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.0462] device (wlp5s0): state change: deactivating -> disconnected (reason 'new-activation', sys-iface-state: 'managed')
Mar 08 18:46:15 shondo dnsmasq[4011]: exiting on receipt of SIGTERM
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.1079] device (wlp5s0): set-hw-addr: set MAC address to 36:03:73:FB:79:D4 (scanning)
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.1786] device (wlp5s0): Activation: starting connection 'Hotspot' (6fea3d51-3e45-4be7-b3c1-d2ee03e9857d)
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.1791] device (wlp5s0): supplicant interface state: completed -> disconnected
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.1791] device (p2p-dev-wlp5s0): supplicant management interface state: completed -> disconnected
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.1793] device (wlp5s0): supplicant interface state: disconnected -> interface_disabled
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.1793] device (p2p-dev-wlp5s0): supplicant management interface state: disconnected -> interface_disabled
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.1793] device (wlp5s0): supplicant interface state: interface_disabled -> disconnected
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.1793] device (p2p-dev-wlp5s0): supplicant management interface state: interface_disabled -> disconnected
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.1796] device (wlp5s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.2324] device (wlp5s0): set-hw-addr: reset MAC address to 30:03:C8:37:8B:39 (preserve)
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.2986] device (wlp5s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.2988] device (wlp5s0): Activation: (wifi) access point 'Hotspot' has security, but secrets are required.
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.2988] device (wlp5s0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.2998] device (wlp5s0): state change: need-auth -> prepare (reason 'none', sys-iface-state: 'managed')
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.3005] device (wlp5s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.3007] device (wlp5s0): Activation: (wifi) connection 'Hotspot' has security, and secrets exist.  No new secrets needed.
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.3007] Config: added 'ssid' value 'shondo'
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.3007] Config: added 'mode' value '2'
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.3007] Config: added 'frequency' value '5260'
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.3007] Config: added 'freq_list' value '5260'
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.3007] Config: added 'key_mgmt' value 'WPA-PSK WPA-PSK-SHA256 SAE'
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.3007] Config: added 'psk' value '<hidden>'
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.3008] Config: added 'proto' value 'RSN'
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.3008] Config: added 'pairwise' value 'CCMP'
Mar 08 18:46:15 shondo NetworkManager[857]: <info>  [1709923575.3008] Config: added 'group' value 'CCMP'
Mar 08 18:46:40 shondo NetworkManager[857]: <warn>  [1709923600.9910] device (wlp5s0): Activation: (wifi) Hotspot network creation took too long, failing activation
Mar 08 18:46:40 shondo NetworkManager[857]: <info>  [1709923600.9911] device (wlp5s0): state change: config -> failed (reason 'supplicant-timeout', sys-iface-state: 'managed')
Mar 08 18:46:40 shondo NetworkManager[857]: <warn>  [1709923600.9916] device (wlp5s0): Activation: failed for connection 'Hotspot'
Mar 08 18:46:40 shondo NetworkManager[857]: <info>  [1709923600.9917] device (wlp5s0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
Mar 08 18:46:41 shondo NetworkManager[857]: <info>  [1709923601.0312] device (wlp5s0): set-hw-addr: set MAC address to 5A:D2:64:D6:46:5D (scanning)
Mar 08 18:46:41 shondo NetworkManager[857]: <info>  [1709923601.0885] device (wlp5s0): supplicant interface state: disconnected -> interface_disabled
Mar 08 18:46:41 shondo NetworkManager[857]: <info>  [1709923601.0885] device (p2p-dev-wlp5s0): supplicant management interface state: disconnected -> interface_disabled
Mar 08 18:46:41 shondo NetworkManager[857]: <info>  [1709923601.0960] device (wlp5s0): supplicant interface state: interface_disabled -> inactive
Mar 08 18:46:41 shondo NetworkManager[857]: <info>  [1709923601.0960] device (p2p-dev-wlp5s0): supplicant management interface state: interface_disabled -> inactive

Last edited by themusicalduck (2024-03-08 19:04:44)

Offline

#3 2024-03-08 21:20:43

themusicalduck
Member
Registered: 2011-07-04
Posts: 126

Re: [SOLVED] Getting max speed out of a 5Ghz hotspot MEDIATEK Corp. MT7922

I've managed to solve the problem by following https://finchsec-1672417305892.hashnode … smasq-dhcp and using this configuration for hostapd:

interface=wlp5s0
channel=149
hw_mode=a
ieee80211n=1
require_ht=1
ieee80211ac=1
require_vht=1
ieee80211d=1
ieee80211h=0
ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40][DSSS_CK-40][MAX-AMSDU-3839]
vht_capab=[MAX-MPDU-3895][SHORT-GI-80][SU-BEAMFORMEE]
vht_oper_chwidth=1
vht_oper_centr_freq_seg0_idx=155

#ssid
ssid=somessid
country_code=GB
auth_algs=1
wpa=2
macaddr_acl=0
ignore_broadcast_ssid=0
wpa_passphrase=somepass
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

With this I'm able to get the full 866mbps.

Last edited by themusicalduck (2024-03-08 21:54:09)

Offline

Board footer

Powered by FluxBB