Wifi randomly disconnects [AR9462]

Bug #1970965 reported by Daniel Calcoen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

my hardware : laptop Asus N751JK Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01) Subsystem: AzureWave AR9462 Wireless Network Adapter

I was runing Ubuntu 20.10, 21.04 up to Ubuntu 21.10 with Ubuntu Kernel 5.13.0 without any problem.
When migrated to Ubuntu 22.04 which installs Ubuntu Kernel 5.15.0.x (which corresponds to Mainline Kernel 5.15.5) then the problems started.

The Mainline Kernel 5.15.4 corresponds to the Ubuntu Kernel 5.15.0-12.12 (date 2021-11-21 13:32:06)
The Mainline Kernel 5.15.5 corresponds to the Ubuntu Kernel 5.15.0-13.13 (date 2021-11-25 09:35:53)

I upgraded and tested unsuccessfully the following Mainline Kernels : 5.15.28, 5.15.36, 5.16.14, 5.16.20, 5.17.4, 5.17.5

I disabled the power save as explained at https://askubuntu.com/questions/1403773/22-04-wifi-keeps-disconnecting-for-a-few-seconds-frequently/1404471#1404471
without improvement in any of the Kernels tested.
Also the "intel_iommu=off" mentioned at https://groups.google.com/g/linux.debian.kernel/c/RFpPIp0cncA/m/v9ELDxLICgAJ Bug#994590 didn't help.

I downgraded and currently running without any problem using the Ubuntu Kernels 5.13.19-051319-generic or Mainline Kernels 5.15.0 or 5.15.4

There is no problem in my airpoint (router) nor my internet access, I have other different computers and devices working correctly on wifi.
In addition my N751JK works correctly when using the Ethernet adapter for the physical cable.

seems to be something between Mainline Kernels 5.15.4 and 5.15.5 that is also propagated to 5.16.x and 5.17.x

(started at https://bugzilla.kernel.org/show_bug.cgi?id=215918)
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: unknown
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2021-02-21 (432 days ago)
InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Release amd64 (20201022)
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux (not installed)
Tags: jammy
Uname: Linux 5.15.5-051505-generic x86_64
UnreportableReason: The running kernel is not an Ubuntu kernel
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: N/A
_MarkForUpload: True

Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote (last edit ):

Note:
I use Ubuntu Mainline Kernel Installer to install/remove the kernels
https://github.com/bkw777/mainline
which fetches from kernel.ubuntu.com

Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote :
Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote :
Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote :
Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote :
Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote :
Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote :
Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote :
Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote :
description: updated
Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote (last edit ):

the problem appears normally under heavy load for the wifi, i.e. when downloading a big file over the net

my tests are more or less like this
case : Mainline Kernel 5.17.5

1)boot
2)I downloaded a 80Mb file, problem appears
3)turn off Wi-Fi
4)turn on Wi-Fi the problem persist (without heavy load over the Wi-Fi)

usually turning off then on the Wi-Fi make the problem worse

If you want more log files, I'll be happy to help and provide them

affects: kernel-package (Ubuntu) → linux (Ubuntu)
description: updated
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1970965

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote : ProcCpuinfoMinimal.txt

apport information

tags: added: apport-collected jammy
description: updated
Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote : ProcEnviron.txt

apport information

Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote :
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
István Maczkó (maczko-istvan) wrote :

Same problem here.
Asus N551JW computer, Qualcomm Atheros AR9462 Wireless Network Adapter

Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote (last edit ):

as suggested at https://bugzilla.kernel.org/show_bug.cgi?id=215918
I tested with Mainline Kernel 5.18.0rc5 which also shows the disconnection problem

For testing Mainline Kernel 5.18.0rc5 I uninstalled the NVIDIA driver and removed the NVIDIA files which excludes that element from the suspects list

Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote (last edit ):

I installed the official Ubuntu Kernel 5.15.0-32 (via >apt install linux-generic) released in these days and it also contains the problem

Linux ubuntu 5.15.0-32-generic #33-Ubuntu SMP Tue May 10 08:40:25 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote (last edit ):

a) could somebody point me to some page with the information on how to install and build the official Ubuntu Kernel ? (address of the repository and instructions to build/install it)

I plan to bisect from Mainline Kernel 5.15.4 to Mainline Kernel 5.15.5 to try to catch what is causing the problem

It was suggested to do that with the mainstream kernel (from kernel.org) https://bugzilla.kernel.org/show_bug.cgi?id=215918#c40
but I prefer to start with the kernels from kernel.ubuntu.com , that is what I'm using

b)In parallel, while testing each kernel, I wish to profit and collect more information related to the wi-fi,

which are the logs related to wi-fi modules/driver/function that I can produce ?

(because the output obtained from dmesg didn't provide too much help in this case, or I don't know how to interpret it correctly...)

Revision history for this message
myagoo (millagou-benjamin) wrote :

Exactly the same issue here, upgrade from 21.04 to 22.04 made wifi connection unstable and unusable.

I have a Asus N55JK Laptop with Qualcomm Atheros AR9462 wifi adapter.
No issue with the network or when I'm using ethernet.

Is the workaround of using an older linux kernel working ? I'm new to this and I'm not sure of how to do it. (I have a nvidia gpu)

Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote (last edit ):

to known your version, open a terminal and type
>uname -a

to install Mainline Kernel 5.15.4, navigate to https://github.com/bkw777/mainline
and follow the instructions to install the Ubuntu Mainline Kernel Installer
then you'll have the graphical application which makes easy to install the Mainline Kernel 5.15.4

The Mainline Kernel 5.15.4 corresponds to the Ubuntu Kernel 5.15.0-12.12 date 2021-11-21 13:32:06
The Mainline Kernel 5.15.5 corresponds to the Ubuntu Kernel 5.15.0-13.13 date 2021-11-25 09:35:53

Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote (last edit ):
description: updated
description: updated
description: updated
Revision history for this message
Daniel Calcoen (daniel-calcoen) wrote :

I installed Mainline Kernel 5.17.11 and the problem has disappeared

Revision history for this message
clayg (clay-gerrard) wrote :

I believe this lp issue is related to another issue #1968391

For me the problem did I was seeing with wifi disconnects did NOT go away when I installed 5.17.11, but my wifi is running stable for >24 hours with an *older* kernel:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1968391/comments/13

Revision history for this message
clayg (clay-gerrard) wrote :

got my wifi working stable on a 5.18 kernel (couldn't get vbox working on 5.19)

root@banana:~/wifi-kernel# uname -a
Linux banana 5.18.19-051819-generic #202208211443 SMP PREEMPT_DYNAMIC Sun Aug 21 15:10:27 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

from lshw

           *-network
                description: Wireless interface
                product: Wireless 8265 / 8275
                vendor: Intel Corporation
                physical id: 0
                bus info: pci@0000:04:00.0
                logical name: wlp4s0
                version: 88
                serial: 38:de:ad:4a:80:bc
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=iwlwifi driverversion=5.18.19-051819-generic firmware=36.ca7b901d.0 8265-36.ucode ip=192.168.1.181 latency=0 link=yes multicast=yes wireless=IEEE 802.11
                resources: irq:135 memory:ec100000-ec101fff

Revision history for this message
clayg (clay-gerrard) wrote :

I moved and noticed this problem went away with a different router (SAX1V1K) even on the older kernel.

The other network was a eero mesh - so there was like two WAP devices that I guess are same SSID or something, and maybe it was bouncing back and forth between them (poorly?). I don't know if other devices in the house had the problem, using the newer kernel seemed to help so I had assumed it was something weird about the hardware in my IBM x1 5th gen thinkpad, but maybe it's just hard to get mesh networking right and I was just sensitive to the interruptions on my work laptop.

Revision history for this message
clayg (clay-gerrard) wrote :

well, idk, this router might just have issues:

Mar 23 14:54:34 banana wpa_supplicant[991]: wlp4s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-45 noise=9999 txrate=866700
Mar 23 14:54:39 banana wpa_supplicant[991]: wlp4s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-40 noise=9999 txrate=866700

but I'm thinking about going back to the newer kernel

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.