Problem: WiFi is much slower on Ubuntu 22.04 LTS than on Windows 10. The connection has download speed around 21-26 Mb/s and similar upload, while on Windows and on iOS the download is 330-360 Mb/s.
Potential solution for Intel WNA:
First thing You have to check in solving this problem is the Wireless Network Adapter(WNA) You have in your computer, second is the relevant Ubuntu driver for this WNA. If it's Intel's the solution may be to add line options iwlwifi 11n_disable=8 to the file /etc/modprobe.d/iwlwifi.conf or change the value of this parameter to 8 if the line's already there. This value allows 'aggressive TX'.
In my case the hardware is Qualcomm Atheros QCA9377 802.11ac, so the above solution isn't suitable. The relevant driver is ath10k.
Informative commands:
$ iwconfig
$ lsmod | grep ath10k(=name of the wireless network adapter driver)
$ sudo dmesg | grep -e ath -e wl
$ sudo lshw -C network
$ nmcli device wifi list
$ sudo dmesg | grep ath | egrep "regdomain|Country"
$ sudo dmesg| grep beacon
$ iw reg get
Potential solutions:
- sudo apt install firmware-atheros
- sudo apt install linux-generic
- sudo iwconfig wlp3s0 power off
- sudo apt install --reinstall linux-firmware
- Ipv6 method in the settings of currently used network entered via Gnome interface:
automaticchanged todisabled - Adding line:
options cfg80211 ieee80211_regdom=XX(my country alpha2 code) toetc/modprobe.d/cfg80211.conf - Setting
wifi.powersave = 2(from 3) inetc/NetworkManager/conf.d/default-wifi-powersave-on.conf - Removing
#beforeprecedence ::ffff:0:0/96 100in/etc/gai.conf - Checking for
Additional drivers(that's the name of Ubuntu app) - Splitting the network into two separate 1 for each band (I did this by changing fiber optic modem mode from
opentorouterin operator's web-app interface) - Trying 2.4Ghz band (also worse than on other systems)
- Somebody solved the problem by up/down-grading to different version of kernel, but I prefer not to mess with it. My kernel is the latest currently available (6.2.0-37-generic).
- Switching the backend component controlling wireless connectivity from
wpa_supplicanttoiwdsetting it up manually.
None of the tried methods brought a significant change to the Wifi speed.
For solution, check the accepted answer.
Sources:
- SOLVED: WLAN ath5k: regulatory domain set but it is ignored?
- My Qualcomm Atheros QCA9377 Wireless adopter is not working in Ubuntu 20.04 LTS (Vendor: Lenovo Model:E41-25)
- wifi issues in ubuntu 22.04LTS
- 22.04: WiFi an order of magnitude slower than in Windows
- How can I change an Atheros wireless NIC region (regulatory domain) in Ubuntu?
- https://www.mail-archive.com/ath10k@lists.infradead.org/msg13040.html
- https: //forums.debian.net/viewtopic.php?f=7&t=127880
- https: //forums.debian.net/viewtopic.php?t=135693
- https://forums.debian.net/viewtopic.php?f=7&t=132008&p=639267&hilit=atheros+QCA9377#p639267
- https: //wireless.wiki.kernel.org/en/users/drivers/ath
- https: //lists.infradead.org/pipermail/ath10k/2020-November/012090.html
- setting regulatory region I thought that may be the solution, but it wasn't in my case. If the kernel doesn't read the region, check this.
- https://github.com/pop-os/pop/issues/1470
- https://github.com/kvalo/ath10k-firmware/blob/master/README.md
- https://wireless.wiki.kernel.org/en/developers/regulatory/processing_rules