Wireless not connecting, disconnecting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
When trying to connect to almost any wireless network, it never connects, the indicator just keeps moving until it says Disconnected a minute or so later. This happens 100% of the time with all encryped networks, and 99% of the time with unencrypted networks. I have so far have not been able to connect to an encrypted network, only unencrypted after several tries.
The very rare case when it does actually manage to connect (this is usually after trying to connect for an hour or so, many times beforehand, switching on/off the wireless with the hardware switch), it actually stays connected until you manually disconnect, and is also quite stable (downloads and PPTP connections work with no problem).
Attached is a snippet of the old syslog from a few days ago when I was trying to connect, the current syslog doesn't have any relevant info as I am not near a wireless network currently. I will be in a position to do further testing tomorrow, if needed.
The system is a netbook:
Acer Aspire one,
with Atheros AR5BXB63 wireless card
-------
$ lsb_release -rd
Description: Ubuntu 12.04.1 LTS
Release: 12.04
-------
network-manager:
Installed: 0.9.4.0-0ubuntu4.1
Candidate: 0.9.4.0-0ubuntu4.1
Version table:
*** 0.9.4.0-0ubuntu4.1 0
500 http://
100 /var/lib/
0.
500 http://
-------
$ modinfo ath5k
filename: /lib/modules/
license: Dual BSD/GPL
description: Support for 5xxx series of Atheros 802.11 wireless LAN cards.
author: Nick Kossifidis
author: Jiri Slaby
srcversion: FA2500C2D3C1A3B
alias: pci:v0000168Cd0
alias: pci:v0000168Cd0
alias: pci:v0000168Cd0
alias: pci:v0000168Cd0
alias: pci:v0000168Cd0
alias: pci:v0000168Cd0
alias: pci:v0000168Cd0
alias: pci:v0000168Cd0
alias: pci:v0000168Cd0
alias: pci:v0000168Cd0
alias: pci:v0000168Cd0
alias: pci:v000010B7d0
alias: pci:v0000A727d0
alias: pci:v0000168Cd0
alias: pci:v0000168Cd0
alias: pci:v0000168Cd0
alias: pci:v0000168Cd0
alias: pci:v0000168Cd0
depends: mac80211,
intree: Y
vermagic: 3.2.0-31-
parm: nohwcrypt:Disable hardware encryption. (bool)
parm: all_channels:Expose all channels the device can use. (bool)
parm: fastchanswitch:
-------
$ iwconfig
lo no wireless extensions.
virbr0 no wireless extensions.
wlan0 IEEE 802.11bg ESSID:"Prospero632"
Bit Rate=1 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=13/70 Signal level=-97 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:1 Invalid misc:2 Missed beacon:0
eth0 no wireless extensions.
-------
$ lspci -v
(omitted irrelevant devices)
03:00.0 Ethernet controller: Atheros Communications Inc. AR242x / AR542x Wireless Network Adapter (PCI-Express) (rev 01)
Subsystem: Foxconn International, Inc. Device e008
Flags: bus master, fast devsel, latency 0, IRQ 18
Memory at 55200000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [40] Power Management version 2
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [60] Express Legacy Endpoint, MSI 00
Capabilities: [90] MSI-X: Enable- Count=1 Masked-
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Kernel driver in use: ath5k
Kernel modules: ath5k
-------
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: network-manager 0.9.4.0-0ubuntu4.1
ProcVersionSign
Uname: Linux 3.2.0-31-
ApportVersion: 2.0.1-0ubuntu13
Architecture: i386
Date: Sun Oct 7 23:01:50 2012
IfupdownConfig:
auto lo
iface lo inet loopback
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
IpRoute:
default via 10.1.0.1 dev eth0 proto static
10.1.0.0/24 dev eth0 proto kernel scope link src 10.1.0.200 metric 1
169.254.0.0/16 dev eth0 scope link metric 1000
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
NetworkManager.
[main]
NetworkingEnab
WirelessEnable
WWANEnabled=true
RfKill:
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
SourcePackage: network-manager
UpgradeStatus: Upgraded to precise on 2012-07-13 (86 days ago)
nmcli-dev:
DEVICE TYPE STATE DBUS-PATH
wlan0 802-11-wireless disconnected /org/freedeskto
eth0 802-3-ethernet connected /org/freedeskto
nmcli-nm:
RUNNING VERSION STATE NET-ENABLED WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
running 0.9.4.0 connected enabled enabled enabled enabled enabled
This seems like a problem with DHCP (this is on an unencrypted network):
Oct 9 12:07:32 acer dhclient: Internet Systems Consortium DHCP Client 4.1-ESV-R4 /www.isc. org/software/ dhcp/ 915]: <info> (wlan0): DHCPv4 state changed nbi -> preinit 00:23:4d: 38:09:45 00:23:4d: 38:09:45 915]: <info> (wlan0): DHCPv4 state changed preinit -> expire 915]: <info> (wlan0): DHCPv4 state changed expire -> preinit 4dff:fe38: 945. 4dff:fe38: 945 on wlan0.*. 915]: <warn> (wlan0): DHCPv4 request timed out. 915]: <info> (wlan0): canceled DHCP transaction, DHCP client pid 3878
Oct 9 12:07:32 acer dhclient: Copyright 2004-2011 Internet Systems Consortium.
Oct 9 12:07:32 acer dhclient: All rights reserved.
Oct 9 12:07:32 acer dhclient: For info, please visit https:/
Oct 9 12:07:32 acer dhclient:
Oct 9 12:07:32 acer NetworkManager[
Oct 9 12:07:32 acer dhclient: Listening on LPF/wlan0/
Oct 9 12:07:32 acer dhclient: Sending on LPF/wlan0/
Oct 9 12:07:32 acer dhclient: Sending on Socket/fallback
Oct 9 12:07:32 acer dhclient: DHCPREQUEST of 192.168.1.79 on wlan0 to 255.255.255.255 port 67
Oct 9 12:07:33 acer dhclient: DHCPNAK from 192.168.1.75
Oct 9 12:07:33 acer NetworkManager[
Oct 9 12:07:33 acer dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
Oct 9 12:07:33 acer NetworkManager[
Oct 9 12:07:33 acer avahi-daemon[734]: Joining mDNS multicast group on interface wlan0.IPv6 with address fe80::223:
Oct 9 12:07:33 acer avahi-daemon[734]: New relevant interface wlan0.IPv6 for mDNS.
Oct 9 12:07:33 acer avahi-daemon[734]: Registering new address record for fe80::223:
Oct 9 12:07:36 acer dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
Oct 9 12:07:42 acer kernel: [ 2265.920079] wlan0: no IPv6 routers present
Oct 9 12:07:44 acer dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
Oct 9 12:07:55 acer dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 19
Oct 9 12:08:14 acer dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 19
Oct 9 12:08:18 acer NetworkManager[
Oct 9 12:08:18 acer NetworkManager[
dhclient sends a request for .79 (I'm assuming this is its last known dhcp address), which is denied by the server on .75. The client then sends a DHCPDISCOVER which should be replied to by a DHCP offer by the server, but it never is, so the discovery times out.
A manual address setting works, so it does seem to confirm this. If there is nothing wrong with the server, my thoughts would be that there is something wrong with the discover packets (malformed maybe), or something is eating up the offers on route back from the server.
------- ------- ------- ------- ------- ------- -
Also, a WPA-PSK TKIP network:
Oct 2 20:03:36 acer dhclient: Internet Systems Consortium DHCP Client 4.1-ESV-R4 /www.isc. org/software/ dhcp/ 912]: <info> (wlan0): DHCPv4 state changed nbi -> preinit
Oct 2 20:03:36 acer dhclient: Copyright 2004-2011 Internet Systems Consortium.
Oct 2 20:03:36 acer dhclient: All rights reserved.
Oct 2 20:03:36 acer dhclient: For info, please visit https:/
Oct 2 20:03:36 acer dhclient:
Oct 2 20:03:36 acer NetworkManager[
Oct 2 20:03:36 acer dhclient: Listening on LPF/wlan0/0...