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:
automatic
changed 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 100
in/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
open
torouter
in 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_supplicant
toiwd
setting 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
modinfo iwlwifi | grep parm
You will see, among others: parm: 11n_disable:disable 11n functionality, bitmap: 1: full, 2: disable agg TX, 4: disable agg RX, 8 enable agg TX (uint). So the parameter is certainly available. May we see:sudo dmesg | grep iwl
– chili555 Dec 07 '23 at 23:00ath10k_pci
. I suggest that you search for clues:sudo dmesg | grep -e ath -e wl
Also, check my troubleshooting steps here: https://askubuntu.com/questions/1453583/intel-ax201-wifi-adapter-disconnecting-frequently/1453593#1453593 – chili555 Dec 08 '23 at 20:11sudo dmesg | grep -e wlp -e ath
After the reboot I requested in my new answer, please. – chili555 Dec 11 '23 at 16:09nmcli device wifi list
Only show your router and redact the MAC addresses with XX:XX. – chili555 Dec 12 '23 at 22:35then I have rebuild the module with the option "Do not enforce EEPROM regulatory restrictions"
link to the patch (must be adjusted depending on kernel version)
https://github.com/openwrt/openwrt/blob/master/package/kernel/mac80211/patches/ath/402-ath_regd_optional.patch END QUOTE
– silver2 Dec 13 '23 at 20:20country PL: DFS-ETSI"
i.e. the same as you set in the cfg80211.conf file. I doubt that you need to do anything further about the regulatory domain. I haven't any other suggestions. – chili555 Dec 13 '23 at 21:35My Intel WIFI card has the following characteristics: *-network description: Wireless interface product: Wireless 7265 vendor: Intel Corporation
These characteristics are just brief part of a more detailed output I got by using the command: sudo lshw -C network
– Curiousone Dec 15 '23 at 10:27