ath5k wireless fails to connect natty

Bug #714300 reported by David Stevenson
54
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Linux
Fix Released
Medium
linux (Ubuntu)
Fix Released
High
Canonical Kernel Team
Natty
Fix Released
High
Canonical Kernel Team

Bug Description

Network manager tries and tries, and then dies with option to send bug report - which fails.
I think the problem is, from dmesg "ath5k phy0: gain calibration timeout" which keeps repeating.
I found this https://bugzilla.kernel.org/show_bug.cgi?id=27382 which looks like my problem, so this is a request to ensure their fix makes it into release.

All worked fine in 10.10 2.6.35
Chip is Atheros Communications Inc. AR2413 802.11bg NIC (rev 01)

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: linux-image-2.6.38-1-generic 2.6.38-1.28
Regression: Yes
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.38-1.28-generic 2.6.38-rc2
Uname: Linux 2.6.38-1-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: david 1272 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'NVidia'/'HDA NVidia at 0xc0000000 irq 19'
   Mixer name : 'Realtek ALC883'
   Components : 'HDA:10ec0883,10250000,00100002 HDA:14f12c06,10250093,00100000'
   Controls : 24
   Simple ctrls : 14
Date: Sun Feb 6 22:26:50 2011
HibernationDevice: RESUME=UUID=e231d7d2-beaa-46d3-b22e-b4a8cc2caeb5
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110202)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Acer Aspire 9300
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcEnviron:
 LANGUAGE=en_GB.UTF-8:en
 LANG=en_GB.UTF-8
 LC_MESSAGES=en_AG.utf8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-1-generic root=UUID=a7e95bfe-6b52-4b8a-bdf2-8b3733ca9202 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-2.6.38-1-generic N/A
 linux-backports-modules-2.6.38-1-generic N/A
 linux-firmware 1.46
SourcePackage: linux
dmi.bios.date: 05/15/2007
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: V1.19
dmi.board.name: Myallm
dmi.board.vendor: Acer
dmi.board.version: Rev
dmi.chassis.asset.tag: None
dmi.chassis.type: 10
dmi.chassis.vendor: Acer
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenixTechnologiesLTD:bvrV1.19:bd05/15/2007:svnAcer:pnAspire9300:pvr0100:rvnAcer:rnMyallm:rvrRev:cvnAcer:ct10:cvrN/A:
dmi.product.name: Aspire 9300
dmi.product.version: 0100
dmi.sys.vendor: Acer

Revision history for this message
David Stevenson (david-avoncliff) wrote :
tags: added: regression-release
removed: regression-proposed
Changed in linux (Ubuntu):
importance: Undecided → High
status: New → Triaged
assignee: nobody → Canonical Kernel Team (canonical-kernel-team)
Changed in linux:
importance: Unknown → Medium
status: Unknown → Incomplete
Changed in linux:
status: Incomplete → Fix Released
Revision history for this message
David Stevenson (david-avoncliff) wrote :

Well that should be good news, but where is the fix?
I have just updated to 2.6.38-3-generic and no improvement.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Linux has pulled the patch fixing this into mainline. It will be part of the -rc7. In the meantime I'm using ubuntu-mainline kernel from here: http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/2011-02-26-natty/

Simply download the debs: all + 2 packages for your arch and install them with dpkg. Reboot and enjoy stable wifi =)

Alternativly wait for linus to release -rc7 and wait for ubuntu kernel team to rebase ontop of -rc7.

Revision history for this message
David Stevenson (david-avoncliff) wrote :

Dmitrijs
Thanks for the update.
Unfortunately I can not get that kernel to work with Nouveau - not sure why but back to last kernel and xorg goes again.
While struggling to get a desktop I still saw lots of "wlan: direct probe to...." errors which is what i was getting from the compat-wireless pkg.
Happy to try more options, but otherwise I will go back to ethernet wires.

Revision history for this message
Richard Senior (sanhozay) wrote :

I was having this problem yesterday with 11.04 Natty Alpha 3 but today I've used apt-get dist-upgrade and pulled in kernel 2.6-38-6. It's been extremely stable, including standing up to the odd Compiz crash (which was killing my wireless yesterday), suspend/resume, copying 6GB of data via NFS and an hour displaying streaming live TV. General web browsing has been fine. All looking good.

Revision history for this message
Herton R. Krzesinski (herton) wrote :

@David -- can you recheck the latest 2.6.38-7 kernel in natty, and see if the problem still happens with it?

Changed in linux (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
David Stevenson (david-avoncliff) wrote :

Sorry for delay, I still have a non working wi-fi.
The problem is not the same, the "gain calibration timeout" does not appear, but now I get "direct probe to..." repeated many many times. The wireless is getting much further.
So I think you can mark this bug as fixed.
I was concerned that my work around attempts had caused the new failure, but I have been unable to fix it.
I will do a complete new install of Natty 3 - the original install was only for testing - and let you know.
David

Revision history for this message
Leo (llenchikk) wrote :

I can confirm it on Acer Aspire 5110.
I boot liveUSB with 11.04 Natty beta1. Network Manager applet does not list any wireless network information. And I can't connect with hidden network. It's regression issue.
HW wireless info from 10.10:

$ sudo lshw -C network
  *-network:1
       description: Wireless interface
       product: AR2413 802.11bg NIC
       vendor: Atheros Communications Inc.
       physical id: 2
       bus info: pci@0000:06:02.0
       logical name: wlan0
       version: 01
       serial: 00:16:ce:57:4f:b0
       width: 32 bits
       clock: 33MHz
       capabilities: pm bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath5k driverversion=2.6.35-28-generic firmware=N/A ip=192.168.1.20 latency=168 link=yes maxlatency=28 mingnt=10 multicast=yes wireless=IEEE 802.11bg
       resources: irq:22 memory:f8110000-f811ffff

Revision history for this message
David Stevenson (david-avoncliff) wrote :

Not very good here - now natty alpha3.
On boot up nwmanager tries to link to my essid, fails and asks for wep key again.
It reports the correct wireless networks available, so it is receiving OK.
Dmesg reports multiple
[ 657.327575] ath5k phy0: gain calibration timeout (2472MHz)
[ 657.776977] ath5k phy0: gain calibration timeout (2462MHz)
[ 712.466984] ath5k phy0: gain calibration timeout (2412MHz)
Iwlist wlan0 key shows no keys set, so I added the key via iwconfig
now it fails just the same but dmesg errors are
[ 998.695478] ath5k phy0: gain calibration timeout (2447MHz)
[ 999.185602] ath5k phy0: gain calibration timeout (2452MHz)
[ 999.685584] ath5k phy0: gain calibration timeout (2457MHz)
[ 1001.135353] net_ratelimit: 2 callbacks suppressed
So back to where I started.
( same config in 10.10 still works fine )

Revision history for this message
David Stevenson (david-avoncliff) wrote :

Whoops for some reason I have pasted the wrong errors in for the boot attempt it was
[ 76.693191] wlan0: direct probe to 00:1a:70:89:4d:21 (try 1/3)
[ 76.890058] wlan0: direct probe to 00:1a:70:89:4d:21 (try 2/3)
[ 77.090055] wlan0: direct probe to 00:1a:70:89:4d:21 (try 3/3)

Until I tried iwconfig.
Sorry David

Revision history for this message
David Stevenson (david-avoncliff) wrote :

Another update -above was with new natty alpha3 - I thought with latest update during install, but it that must have failed. I have now redone the update and have 2.6.28-7 and still no connection, but the gain calibration messages are gone.
Just the direct probe messages.
Otherwise just the same, it can see the wireless networks but not connect to them.
David

Changed in linux (Ubuntu):
status: Incomplete → Triaged
Revision history for this message
Leo (llenchikk) wrote :

LiveUSB from 04-04-2011. I can see available wifi. I can connect to wifi.
Seems to bee fixed.
Can anybody confirm this?

HW wireless info from 11.04 live session:

$ sudo lshw -C network
*-network:1
       description: Wireless interface
       product: AR2413 802.11bg NIC
       vendor: Atheros Communications Inc.
       physical id: 2
       bus info: pci@0000:06:02.0
       logical name: wlan0
       version: 01
       serial: 00:16:ce:57:4f:b0
       width: 32 bits
       clock: 33MHz
       capabilities: pm bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath5k driverversion=2.6.38-7-generic firmware=N/A ip=192.168.1.20 latency=168 link=yes maxlatency=28 mingnt=10 multicast=yes wireless=IEEE 802.11bg
       resources: irq:22 memory:f8110000-f811ffff

Revision history for this message
David Stevenson (david-avoncliff) wrote :

Success!
Yes I have just done a software update on my alpha3 install and after reboot wireless is working.
Thanks all
David

Revision history for this message
Tim Gardner (timg-tpi) wrote :

Marking 'Fix released' based on David's comment at https://bugs.launchpad.net/ubuntu/+source/linux/+bug/714300/comments/13

Changed in linux (Ubuntu Natty):
status: Triaged → Fix Released
Revision history for this message
Leo (llenchikk) wrote :

Wifi connection not working again.
But I can see list of available networks.
I try LiveUSB downloaded 08-Apr-2011.

There are arrors like at comment #10.

Revision history for this message
David Stevenson (david-avoncliff) wrote :

Further to my last report, when it connects it stays connected, and gives reliable full speed data transfer.
But I have also seen it fail to connect, since, with no change to the installed software.
It feels like if it fails to connect, some thing is reset to a wrong setting and never recovers.
I do think this is a different bug to the original, although it produces the same - 'Fails to connect'

Revision history for this message
Tommy Trussell (tommy-trussell) wrote :

This past weekend I upgraded an Acer 5100-3949 laptop (same Atheros AR2413 wireless chip) from Maverick 10.10 to Natty 11.04 and ran into this problem.

The wireless connection never seems to come up right away. It will SOMETIMES come up on its own after ~400seconds wait, but I haven't found a reliable way to kick the wireless into action. (I tried issuing some DBus messages to network manager and it would sometimes connect but I never found anything reliable so it was apparently just by chance.) I am connecting to a strong signal, WPA secured connection.

uname -a says
Linux AcerA5100 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 athlon i386 GNU/Linux

I will try downloading an iso and doing a fresh install and see if there is any change.

Revision history for this message
Tommy Trussell (tommy-trussell) wrote :

Actually my connection problem must be different -- I do NOT see the "gain calibration timeout" message mentioned in the kernel bug in my dmesg or syslog. I will try installing from an iso AND look for or report another bug.

Luis Mondesi (lemsx1)
summary: - ath5k wireless failes to connect natty alpha2
+ ath5k wireless fails to connect natty
Revision history for this message
Luis Mondesi (lemsx1) wrote :

I installed Natty (beta2) from 10.10 using do-release-upgrade -d today and my wiki network is not working. the ath5k driver is loaded and sudo lshw -C network shows the interface. network manager does not list any wireless connections and "iwconfig" does not list the interface.

Attempts to remove the kernel module ath5k causes a crash.

"BUG: unable to handle pointer null kernel dereference..." is in the syslog.

Everything used to work fine under 10.10 and previous versions.

Revision history for this message
Luis Mondesi (lemsx1) wrote :
Revision history for this message
Luis Mondesi (lemsx1) wrote :

03:04.0 Ethernet controller: Atheros Communications Inc. AR5413 802.11abg NIC (rev 01)
 Subsystem: Atheros Communications Inc. Device 1602
 Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
 Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Interrupt: pin A routed to IRQ 17
 Region 0: Memory at c2100000 (32-bit, non-prefetchable) [size=64K]
 Capabilities: [44] Power Management version 2
  Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
  Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=2 PME-
 Kernel modules: ath5k

Revision history for this message
Forrest Yu (forrest) wrote :

Here's a workaround for me: downgrade the kernel to 2.6.37.6 and everything's OK now.

my lspci output:
06:02.0 Ethernet controller: Atheros Communications Inc. AR2413 802.11bg NIC (rev 01)

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.