View Full Version : [SOLVED] 10.10 Wifi locks up and disconnects
flibs69
November 11th, 2010, 12:06 AM
I have an issue with wifi in ubuntu 10.10:
Wifi works fine for a while (anything from 1 minute to a day), until it locks up and disconnects.
I have had this problem on 2 separate systems - one with a built-in realtek wifi which I have cured by using ndiswrapper. The other uses a Netgear WN-111v2, which I can't use ndiswrapper with as there doesn't appear to be an NDIS driver (the windows driver come as an installer with custom software and such in it).
Unplugging the USB Wifi adaptor and plugging it back in again makes the network work again for a while, but then it just disconnects again and locks up. (You can't detect any networks without unplugging it)
Any clues?
--
iwconfig:
wlan0 IEEE 802.11bgn ESSID:"Television Services"
Mode:Managed Frequency:2.462 GHz Access Point: 00:1F:1F:67:F1:B0
Bit Rate=36 Mb/s Tx-Power=27 dBm
Retry long limit:7 RTS thr: off Fragment thr: off
Power Management: off
Link Quality=69/70 Signal level=-41 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
dmesg:
[145145.356816] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[145155.882482] wlan0: no IPv6 routers present
[149756.995130] wlan0: authenticate with 00:1f:1f:67:f1:b0 (try 1)
[149757.004130] wlan0: authenticated
[149757.004159] wlan0: associate with 00:1f:1f:67:f1:b0 (try 1)
[149757.008133] wlan0: RX AssocResp from 00:1f:1f:67:f1:b0 (capab=0x411 status=0 aid=2)
[149757.008141] wlan0: associated
[171841.249118] wlan0: authenticate with 00:1f:1f:67:f1:b0 (try 1)
[171841.448044] wlan0: authenticate with 00:1f:1f:67:f1:b0 (try 2)
[171841.648045] wlan0: authenticate with 00:1f:1f:67:f1:b0 (try 3)
[171841.848049] wlan0: authentication with 00:1f:1f:67:f1:b0 timed out
[173014.350218] ADDRCONF(NETDEV_UP): wlan0: link is not ready
flibs69
November 11th, 2010, 01:29 PM
Update:
When the connection has died iwconfig looks like this:
wlan0 IEEE 802.11bgn ESSID:"Television Services"
Mode:Managed Frequency:2.462 GHz Access Point: Not-Associated
Tx-Power=27 dBm
Retry long limit:7 RTS thr: off Fragment thr: off
Power Management: off
As you can see it's no longer associated (and can't find any network to associate to).
flibs69
November 11th, 2010, 01:54 PM
Also I know it's not the adaptor or the USB subsystem - the same system works perfectly under winsucks. The same thing happening with 2 different adaptors on 2 different systems which is cured by using ndis drivers? Seems like a fundamental flaw in the Ubuntu wifi stack to me. Anyone know how I can get more debugging from it to try and see what is going on?
flibs69
November 11th, 2010, 02:05 PM
more debug for you. This is from the /var/log/messages file for a full cycle of plug in, connect, lockup, unplug:
Nov 5 22:02:44 dell kernel: [177781.468330] usb 1-1.1: new high speed USB device using ehci_hcd and address 14
Nov 5 22:02:44 dell kernel: [177781.684332] usb 1-1.1: reset high speed USB device using ehci_hcd and address 14
Nov 5 22:02:46 dell kernel: [177783.201353] cfg80211: Calling CRDA for country: US
Nov 5 22:02:46 dell kernel: [177783.210943] usb 1-1.1: Atheros AR9170 is registered as 'phy7'
Nov 5 22:02:46 dell kernel: [177783.555526] cfg80211: Regulatory domain changed to country: US
Nov 5 22:02:46 dell kernel: [177783.555531] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Nov 5 22:02:46 dell kernel: [177783.555536] (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
Nov 5 22:02:46 dell kernel: [177783.555540] (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
Nov 5 22:02:46 dell kernel: [177783.555545] (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov 5 22:02:46 dell kernel: [177783.555549] (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov 5 22:02:46 dell kernel: [177783.555553] (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov 5 22:02:46 dell kernel: [177783.555557] (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
Nov 5 22:02:47 dell kernel: [177784.605118] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Nov 5 22:44:27 dell kernel: [180284.462361] usb 1-1.1: USB disconnect, address 14
One thing I notice is cfg80211: Regulatory domain changed to country: US. I am in the UK - would that have any effect? And if so, how can I change it?
Bucky Ball
November 11th, 2010, 02:07 PM
Machine? And is that the correct ESSID?
flibs69
November 11th, 2010, 02:13 PM
Right, I am finding even more information and logs for you now. This is from syslog:
ov 10 13:05:17 dell kernel: [577536.904527] usb 1-8: new high speed USB device using ehci_hcd and address 17
Nov 10 13:05:17 dell kernel: [577537.200533] usb 1-8: reset high speed USB device using ehci_hcd and address 17
Nov 10 13:05:19 dell NetworkManager[939]: <info> found WiFi radio killswitch rfkill10 (at /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8:1.0/ieee80211/phy10/rfkill10) (driver <unknown>)
Nov 10 13:05:19 dell kernel: [577538.780042] ath: EEPROM regdomain: 0x0
Nov 10 13:05:19 dell kernel: [577538.780047] ath: EEPROM indicates default country code should be used
Nov 10 13:05:19 dell kernel: [577538.780050] ath: doing EEPROM country->regdmn map search
Nov 10 13:05:19 dell kernel: [577538.780054] ath: country maps to regdmn code: 0x3a
Nov 10 13:05:19 dell kernel: [577538.780057] ath: Country alpha2 being used: US
Nov 10 13:05:19 dell kernel: [577538.780060] ath: Regpair used: 0x3a
Nov 10 13:05:19 dell kernel: [577538.780555] phy10: Selected rate control algorithm 'minstrel'
Nov 10 13:05:19 dell kernel: [577538.788601] cfg80211: Calling CRDA for country: US
Nov 10 13:05:19 dell kernel: [577538.793322] Registered led device: ar9170-phy10::tx
Nov 10 13:05:19 dell kernel: [577538.793579] Registered led device: ar9170-phy10::assoc
Nov 10 13:05:19 dell kernel: [577538.793586] usb 1-8: Atheros AR9170 is registered as 'phy10'
Nov 10 13:05:19 dell kernel: [577538.797514] cfg80211: Regulatory domain changed to country: US
Nov 10 13:05:19 dell kernel: [577538.797519] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Nov 10 13:05:19 dell kernel: [577538.797524] (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
Nov 10 13:05:19 dell kernel: [577538.797528] (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
Nov 10 13:05:19 dell kernel: [577538.797533] (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov 10 13:05:19 dell kernel: [577538.797537] (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov 10 13:05:19 dell kernel: [577538.797541] (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Nov 10 13:05:19 dell kernel: [577538.797545] (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
Nov 10 13:05:19 dell NetworkManager[939]: SCPlugin-Ifupdown: devices added (path: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8:1.0/net/wlan0, iface: wlan0)
Nov 10 13:05:19 dell NetworkManager[939]: SCPlugin-Ifupdown: device added (path: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8:1.0/net/wlan0, iface: wlan0): no ifupdown configuration found.
Nov 10 13:05:19 dell NetworkManager[939]: <info> (wlan0): driver supports SSID scans (scan_capa 0x01).
Nov 10 13:05:19 dell NetworkManager[939]: <info> (wlan0): new 802.11 WiFi device (driver: 'ar9170usb' ifindex: 15)
Nov 10 13:05:19 dell NetworkManager[939]: <info> (wlan0): exported as /org/freedesktop/NetworkManager/Devices/12
Nov 10 13:05:19 dell NetworkManager[939]: <info> (wlan0): now managed
Nov 10 13:05:19 dell NetworkManager[939]: <info> (wlan0): device state change: 1 -> 2 (reason 2)
Nov 10 13:05:19 dell NetworkManager[939]: <info> (wlan0): bringing up device.
Nov 10 13:05:20 dell kernel: [577540.051133] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Nov 10 13:05:20 dell NetworkManager[939]: <info> (wlan0): preparing device.
Nov 10 13:05:20 dell NetworkManager[939]: <info> (wlan0): deactivating device (reason: 2).
Nov 10 13:05:20 dell NetworkManager[939]: <info> (wlan0): supplicant interface state: starting -> ready
Nov 10 13:05:20 dell NetworkManager[939]: <info> (wlan0): device state change: 2 -> 3 (reason 42)
Nov 10 22:11:13 dell kernel: [610292.852845] usb 1-8: USB disconnect, address 17
Nov 10 22:11:13 dell kernel: [610292.880525] phy10: writing reg 0x1c368c (val 0x0) failed
Nov 10 22:11:13 dell kernel: [610292.880539] phy10: writing reg 0x1d0104 (val 0x0) failed
Nov 10 22:11:13 dell kernel: [610292.880543] phy10: writing reg 0x1c3d30 (val 0x0) failed
Nov 10 22:11:13 dell avahi-daemon[951]: Withdrawing workstation service for wlan0.
Nov 10 22:11:13 dell NetworkManager[939]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8:1.0/net/wlan0, iface: wlan0)
Nov 10 22:11:13 dell NetworkManager[939]: <info> (wlan0): now unmanaged
Nov 10 22:11:13 dell NetworkManager[939]: <info> (wlan0): device state change: 3 -> 1 (reason 36)
Nov 10 22:11:13 dell NetworkManager[939]: <info> (wlan0): cleaning up...
Nov 10 22:11:13 dell NetworkManager[939]: <info> radio killswitch /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8:1.0/ieee80211/phy10/rfkill10 disappeared
Nov 10 22:11:13 dell wpa_supplicant[1038]: Failed to disable WPA in the driver.
There doesn't seem to be anything of any interest between the wpa_supplicant starting up and me unplugging the device to reset it.
flibs69
November 11th, 2010, 02:14 PM
Machine? And is that the correct ESSID?
It's a Dell Dimension 5150 (hey, it was free, m'kay?)
And yes, the ESSID is correct. As I say, the wifi works fine for a while then just locks up randomly.
flibs69
November 11th, 2010, 02:18 PM
If anyone knows of an NDIS driver for the AR9170 I'll gladly use that instead.
Bucky Ball
November 11th, 2010, 02:20 PM
Posted in error - none of my suggestions will work as USB, not PCI. Oh, well ...
Bucky Ball
November 11th, 2010, 02:24 PM
Hang on ... I haven't asked the obvious. Have you plugged a cable in? If not, do this:
Take the USB out and shutdown the machine.
Plug an ethernet cable in
Boot
Once a conection is established, pop in the USB adapter
Wait.
Are any drivers offered? This could take a few minutes. You will also be offered updates. Accept.
A USB wireless adapter will rarely work 'out of the box'. The drivers you are looking for could be available but legally, they can't be included on the CD/ISO, but they CAN be included in the repos.
Give that a try.
flibs69
November 11th, 2010, 02:28 PM
Hang on ... I haven't asked the obvious. Have you plugged a cable in? If not, do this:
Take the USB out and shutdown the machine.
Plug an ethernet cable in
Boot
Once a conection is established, pop in the USB adapter
Wait.
Are any drivers offered? This could take a few minutes. You will also be offered updates. Accept.
A USB wireless adapter will rarely work 'out of the box'. The drivers you are looking for could be available but legally, they can't be included on the CD/ISO, but they CAN be included in the repos.
Give that a try.
It's the same with or without eth0 connected and whether I boot up with the usb in or out, or with the eth0 in or out.
I have found an entry in dmesg that shows when it actually disconnects, but it means nothing to me:
[655341.328287] No probe response from AP 00:1f:1f:67:f1:b0 after 500ms, disconnecting.
That is after it working fine for some 5,000 seconds. It that point it tries to reconnect to the AP and authenticate but no packets appear to be getting sent out.
Bucky Ball
November 11th, 2010, 02:33 PM
Sound like perhaps DHCP is not quite happening. You sure the DHCP server on the router is set up right? Are you sure that your machine is not trying to serve an IP to the router while it is trying to serve one back?
This scenario can cause some oddities. Might connect in the gaps, but when they both serve at the same time: Crash.
A thought to start with ...
You have updated your machine or you just can't get online with wired or wireless?
flibs69
November 11th, 2010, 02:34 PM
Sound like perhaps DHCP is not quite happening. You sure the DHCP server on the router is set up right? Are you sure that your machine is not trying to serve and IP to the router while it is trying to serve one back?
This scenario can cause some oddities. Might connect in the gaps, but when they both serve at the same time: Crash.
I have disabled DHCP and am using static addresses all through the network. The problem appears to be in one of the bottom two layers of the OSI model.
flibs69
November 11th, 2010, 07:24 PM
A thought to start with ...
You have updated your machine or you just can't get online with wired or wireless?
It has been like this ever since installing afresh, and it only affects wifi, and then intermittantly - wired works fine all the time.
Bucky Ball
November 11th, 2010, 08:21 PM
Perhaps try this. Make sure then that you also have 'Static IPs' disabled on the router also. Eg, don't set the static IPs with the router, set them on the individual computers and send the static IP to the router. I have had troubles trying to assign static IPs to my Ubuntu boxes from the router. Only ever worked for me this way. That might just be my router.
Also double check DNS servers and 'Search Domain' are correct.
Look at it like this Flibs; you're getting to know Ubuntu! Linux is learning, after all. Welcome BTW.
flibs69
November 11th, 2010, 08:37 PM
Perhaps try this. Make sure then that you also have 'Static IPs' disabled on the router also. Eg, don't set the static IPs with the router, set them on the individual computers and send the static IP to the router. I have had troubles trying to assign static IPs to my Ubuntu boxes from the router. Only ever worked for me this way. That might just be my router.
Also double check DNS servers and 'Search Domain' are correct.
Look at it like this Flibs; you're getting to know Ubuntu! Linux is learning, after all. Welcome BTW.
I'm sorry, I don't think you quite understand the problem here. The problem is not an IP problem which is what you are trying to resolve.
I am a networking professional who has been working with linux since Slackware 1.3, and with Ultrix and similar before that. I have a degree in computer science and am a networking professional with qualifications in networking (cisco, etc), and have even written my own DHCP server software in the past.
This is not something as simple as misconfigured IP / DNS / DHCP but something more fundamental to the wifi or usb stacks causing the hardware to fail - most likely some bug in a driver.
I have, however, possibly managed to finally extract the NDIS drivers from multiple layers of wrapping, and am just rebooting to try them out. If they work and I find them more stable than the ubuntu ones then I will create a tgz of them and post them on my site along with a link so others can use them. If netgear don't like that then screw 'em.
flibs69
November 11th, 2010, 08:46 PM
[ 18.421832] wlan0: ethernet device 00:22:3f:90:7e:56 using NDIS driver: arusb_xp, version: 0x40700, NDIS version: 0x501, vendor: 'Atheros OTUS Wireless Network Adapter', 0846:9001.F.conf
I am now using the NDIS drivers. We shall see if that cures it...
tzicatl
November 11th, 2010, 09:55 PM
Looks like Ubuntu 10.10 has very serious problems with the networking stack or with some driver.
I have the same problems on a HP Compaq 515. It came with this wireless card:
06:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev 01)
I tought that some hardware component of my computer would be dying, so I got a brand new Linksys usb wifi card just to try (Model WUSB54GC). Network manager detects it as Ralink 802.11 g WLAN).
Both wireless cards exhibit the same behavior: Sometimes association and DHCP works well, but the internet is unreachable.
Time after the connection is dropped down and unable to connect again.
I'm downloading 10.04 just to check if a regression would work.
flibs69
November 12th, 2010, 05:58 PM
Well, touch wood I haven't had any problems with the wifi yet... it's looking good.
uncaspi
November 12th, 2010, 06:32 PM
10.10 have problems with wireless. 10.04 is a much better choice.
flibs69
November 13th, 2010, 09:11 AM
I would say this is now stable.
Here's a link to the drivers for the Netgear Wn111v2 for download.
http://matt.familyjenkins.com/node/281
uncaspi
November 13th, 2010, 10:36 AM
Please put solved on the thread if it is so.
Bucky Ball
November 14th, 2010, 01:01 PM
And also, in future, put code in
tags; then you really will be 'the expert':
[code][ 18.421832] wlan0: ethernet device 00:22:3f:90:7e:56 using NDIS driver: arusb_xp, version: 0x40700, NDIS version: 0x501, vendor: 'Atheros OTUS Wireless Network Adapter', 0846:9001.F.confEasier that way.
Peeyush.Varshney
November 14th, 2010, 06:46 PM
Dear All,
Wifi is not working for me.. I have installed Ubuntu 10.04 through image(Image size 689 MB) recently.
I have tried all the way but it did not work.
is it some driver problem or else.
Please help me out.
Regards,
Peeyush
mail_to_peeyush@yahoo.com
conualfy
April 21st, 2011, 12:56 AM
It might be a good idea to let users know that your solution is for your wifi card. I have a different wifi but same problem, so a search gets me this thread but only after reading 2 pages I know it's only the solution for a specific card. The title is correct, but it's too general and might be misleading.
I really hope Ubuntu 11.4 will fix these problems. I would only work on any new features when all known bugs are fixed.
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.