rtl8187: spontaneously disassociates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I have a Netgear WG111(v3) USB dongle, lsusb id is 0846:4260.
The device is configured with a static IP address, and connects to an access point using WEP encryption.
The machine it is connected to is a Dell PC, located under a desk. Normally nobody is logged in via GDM,
network-manager is not running and it is not managing the interface.
The computer collects syslog information sent to it over the wireless interface, at present from only one host.
After a few hours the device disconnects with this message:
Aug 26 18:12:24 ubuntu kernel: [606323.620015] No probe response from AP 00:04:ed:00:00:00 after 500ms, disconnecting.
Aug 26 18:12:24 ubuntu kernel: [606323.761271] cfg80211: All devices are disconnected, going to restore regulatory settings
Aug 26 18:12:24 ubuntu kernel: [606323.761277] cfg80211: Restoring regulatory settings
Aug 26 18:12:24 ubuntu kernel: [606323.761282] cfg80211: Calling CRDA to update world regulatory domain
Aug 26 18:12:24 ubuntu kernel: [606323.764770] cfg80211: World regulatory domain updated:
Aug 26 18:12:24 ubuntu kernel: [606323.764775] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
Aug 26 18:12:24 ubuntu kernel: [606323.764779] (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Aug 26 18:12:24 ubuntu kernel: [606323.764783] (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Aug 26 18:12:24 ubuntu kernel: [606323.764786] (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
Aug 26 18:12:24 ubuntu kernel: [606323.764790] (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
Aug 26 18:12:24 ubuntu kernel: [606323.764793] (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
The interval before disconnection is variable, but usually more than 1 hour.
I have a cron job that stops and starts the interface once per day
$ cat /etc/cron.
55 0 * * * root (/sbin/ifdown wlan1; sleep 15; /sbin/ifup wlan1) 1>/dev/null 2>&1
This always works, ie the interface comes up, but it disconnects again after a few hours.
Notes:
The AP MAC address looks bogus but it is in fact ok.
Signal strength is reasonable, according to iwconfig:
iwconfig wlan1
wlan1 IEEE 802.11bg ESSID:"My Net's home"
Bit Rate=11 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=64/70 Signal level=-46 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
/etc/network/
iface wlan1 inet static
address 192.168.13.12
netmask 255.255.255.0
gateway 192.168.13.1
network 192.168.13.0
broadcast 192.168.13.255
wireless-essid My Net's home
wireless-key f43e-d0b4-6b
wireless-mode managed
I am usually running the generic lucid kernel, at present linux-image-
$ uname -a
Linux ubuntu 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:12:52 UTC 2010 i686 GNU/Linux
I've tried this setup for a few days with a mainline build, linux-image-
I see the same behaviour.
The only other thing I have noticed is on ifup I see a message about the wrong country code in syslog
...
Aug 27 21:02:27 ubuntu kernel: [702927.383547] wlan1: RX AssocResp from 00:04:ed:00:00:00 (capab=0x431 status=0 aid=1)
Aug 27 21:02:27 ubuntu kernel: [702927.383551] wlan1: associated
Aug 27 21:02:28 ubuntu kernel: [702927.457481] ADDRCONF(
Aug 27 21:02:28 ubuntu kernel: [702927.457646] cfg80211: Ignoring bogus country IE
However I don't set this anywhere and don't see any config files setting it. The locale is:
LANG=en_AU.UTF-8
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
$ sudo iw reg get
country 00:
(2402 - 2472 @ 40), (3, 20)
(2457 - 2482 @ 20), (3, 20), PASSIVE-SCAN, NO-IBSS
(2474 - 2494 @ 20), (3, 20), NO-OFDM, PASSIVE-SCAN, NO-IBSS
(5170 - 5250 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
(5735 - 5835 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image-
Regression: No
Reproducible: Yes
ProcVersionSign
Uname: Linux 2.6.32-24-generic i686
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: i386
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
Card0.Amixer.info:
Card hw:0 'ICH6'/'Intel ICH6 with AD1981B at irq 23'
Mixer name : 'Analog Devices AD1981B'
Components : 'AC97a:41445374'
Controls : 28
Simple ctrls : 20
Date: Fri Aug 27 21:17:09 2010
HibernationDevice: RESUME=
InstallationMedia: Ubuntu-Studio 10.04 "Lucid Lynx" - Beta i386 (20100406.1)
MachineType: Dell Inc. OptiPlex GX280
ProcCmdLine: BOOT_IMAGE=
ProcEnviron:
PATH=(custom, user)
LANG=en_AU.UTF-8
SHELL=/bin/bash
RelatedPackageV
RfKill:
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
SourcePackage: linux
dmi.bios.date: 09/17/2004
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A03
dmi.board.name: 0G5611
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 6
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: OptiPlex GX280
dmi.sys.vendor: Dell Inc.
Went back to 2.6.32-22-generic, since that fixed other issues (LP:459732).
I installed linux-image- 2.6.32- 22-generic (version 2.6.32-22.36) and linux-backports -modules- wireless- 2.6.32- 33-generic (version 2.6.32-22.13) and rebooted, then selected
this kernel from the grub list.
The same failure occurs, with the same error message.
However I don't see the message about the bogus regulatory domain on this kernel.
So something has changed there. I haven't messed about with 'wireless-crda', the
version installed is 1.12, installed 2010-04-16.
Here's the timeline of associations and disassociations with 2.6.32-22-generic:
<system boot>
Aug 31 22:43:03 ubuntu kernel: [ 25.199388] wlan1: associated
<cron job restarts interface>
Sep 1 00:55:01 ubuntu kernel: [ 7943.304273] wlan1: deauthenticating from 00:04:ed:00:00:00 by local choice (reason=3)
...
Sep 1 00:55:20 ubuntu kernel: [ 7962.289140] wlan1: associated
<failure>
Sep 1 12:10:37 ubuntu kernel: [48479.500014] No probe response from AP 00:04:ed:00:00:00 after 500ms, disconnecting.
<cron job> NETDEV_ UP): wlan1: link is not ready NETDEV_ CHANGE) : wlan1: link becomes ready
Sep 2 00:55:19 ubuntu kernel: [94361.630495] ADDRCONF(
...
Sep 2 00:55:19 ubuntu kernel: [94361.704978] wlan1: associated
Sep 2 00:55:20 ubuntu kernel: [94361.710490] ADDRCONF(
<failure>
Sep 2 06:44:59 ubuntu kernel: [115343.500012] No probe response from AP 00:04:ed:00:00:00 after 500ms, disconnecting.
As I was poking at this, I got a faster failure, within a few minutes.
Here's the link being established: NETDEV_ UP): wlan1: link is not ready NETDEV_ CHANGE) : wlan1: link becomes ready
Sep 2 21:57:21 ubuntu kernel: [170085.954566] ADDRCONF(
Sep 2 21:57:21 ubuntu kernel: [170086.021295] wlan1: direct probe to AP 00:04:ed:00:00:00 (try 1)
Sep 2 21:57:21 ubuntu kernel: [170086.023801] wlan1: direct probe responded
Sep 2 21:57:21 ubuntu kernel: [170086.023805] wlan1: authenticate with AP 00:04:ed:00:00:00 (try 1)
Sep 2 21:57:21 ubuntu kernel: [170086.026038] wlan1: authenticated
Sep 2 21:57:21 ubuntu kernel: [170086.026061] wlan1: associate with AP 00:04:ed:00:00:00 (try 1)
Sep 2 21:57:21 ubuntu kernel: [170086.028671] wlan1: RX AssocResp from 00:04:ed:00:00:00 (capab=0x431 status=0 aid=4)
Sep 2 21:57:21 ubuntu kernel: [170086.028674] wlan1: associated
Sep 2 21:57:21 ubuntu kernel: [170086.034310] ADDRCONF(
and failing
Sep 2 22:00:37 ubuntu kernel: [170284.500014] No probe response from AP 00:04:ed:00:00:00 after 500ms, disconnecting.
With regard to the regulatory domain, for 2.6.32-22-generic
I see this in 'grep cfg80211 /var/log/kern.log':
Aug 31 22:43:01 ubuntu kernel: [ 16.169152] cfg80211: Calling CRDA to update world regulatory domain
Aug 31 22:43:01 ubuntu kernel: [ 16.673469] cfg80211: World regulatory domain updated:
then nothing further for three days.
With later kernels, I see a lot more chatter.
Here's the output of 'grep cfg80211 /var/log/kern.log' for 2.6.32-24-generic, <annotated>.
<cron job>
Aug 30 00:55:01 ubuntu kernel: [186302.842327] cfg80211: All devices are disconnected, going to restore regulatory settings
Aug 30 00:55:01 ubuntu kernel: [186302.842333] cfg80211: Restori...