rtl8187: spontaneously disassociates

Bug #625265 reported by Vince McIntyre
6
This bug affects 1 person
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.d/wireless-restart
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"
          Mode:Managed Frequency:2.412 GHz Access Point: 00:04:ED:00:00:00
          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/interfaces is configured like this:

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-2.6.32-24-generic (2.6.32-24.41)
$ 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-2.6.35-020635rc1-generic.
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(NETDEV_CHANGE): wlan1: link becomes ready
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="en_AU.UTF-8"
LC_NUMERIC="en_AU.UTF-8"
LC_TIME="en_AU.UTF-8"
LC_COLLATE="en_AU.UTF-8"
LC_MONETARY="en_AU.UTF-8"
LC_MESSAGES="en_AU.UTF-8"
LC_PAPER="en_AU.UTF-8"
LC_NAME="en_AU.UTF-8"
LC_ADDRESS="en_AU.UTF-8"
LC_TELEPHONE="en_AU.UTF-8"
LC_MEASUREMENT="en_AU.UTF-8"
LC_IDENTIFICATION="en_AU.UTF-8"
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-2.6.32-24-generic 2.6.32-24.41
Regression: No
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.32-24.41-generic 2.6.32.15+drm33.5
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/controlC0: vjm 1669 F.... pulseaudio
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=UUID=4efab890-99aa-4920-8190-db0fc273b48c
InstallationMedia: Ubuntu-Studio 10.04 "Lucid Lynx" - Beta i386 (20100406.1)
MachineType: Dell Inc. OptiPlex GX280
ProcCmdLine: BOOT_IMAGE=/vmlinuz-2.6.32-24-generic root=/dev/mapper/hostname-root ro quiet splash
ProcEnviron:
 PATH=(custom, user)
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.34.1
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.:bvrA03:bd09/17/2004:svnDellInc.:pnOptiPlexGX280:pvr:rvnDellInc.:rn0G5611:rvr:cvnDellInc.:ct6:cvr:
dmi.product.name: OptiPlex GX280
dmi.sys.vendor: Dell Inc.

Revision history for this message
Vince McIntyre (vmcintyr) wrote :
Revision history for this message
Vince McIntyre (vmcintyr) wrote :
Download full text (4.5 KiB)

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>
Sep 2 00:55:19 ubuntu kernel: [94361.630495] ADDRCONF(NETDEV_UP): wlan1: link is not ready
...
Sep 2 00:55:19 ubuntu kernel: [94361.704978] wlan1: associated
Sep 2 00:55:20 ubuntu kernel: [94361.710490] ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready

<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:
Sep 2 21:57:21 ubuntu kernel: [170085.954566] ADDRCONF(NETDEV_UP): wlan1: link is not ready
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(NETDEV_CHANGE): wlan1: link becomes ready

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...

Read more...

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Hi Vince,

If you could also please test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

    [This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Vince McIntyre (vmcintyr) wrote :
Download full text (4.5 KiB)

I omitted to remove the needs-upstream-testing tag, I'm not that
familiar with all the LP functions.

I noted in the bug I that tested with linux-image-2.6.35-020635rc1-generic.
That has the same problems.

I tested again, with linux-image-2.6.32-0206322109-generic_2.6.32-0206322109.201008271507_i386.deb
from http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.32.21.9-lucid/
$ uname -a
Linux ubuntu 2.6.32-0206322109-generic #201008271507 SMP Fri Aug 27 16:10:51 UTC 2010 i686 GNU/Linux

I tried this for a couple of days. The interface falls over after a few minutes to a few hours.

Here's what dmesg says about the insertion (hot-plug) of the device
with that kernel:

[ 1212.644016] usb 1-2: new high speed USB device using ehci_hcd and address 4
[ 1212.783305] usb 1-2: configuration #1 chosen from 1 choice
[ 1213.131068] phy1: Selected rate control algorithm 'minstrel'
[ 1213.132204] phy1: hwaddr 00:1e:2a:d0:49:db, RTL8187BvE V0 + rtl8225z2, rfkill mask 2
[ 1213.153627] rtl8187: Customer ID is 0x00
[ 1213.155570] Registered led device: rtl8187-phy1::tx
[ 1213.156396] Registered led device: rtl8187-phy1::rx
[ 1213.157119] rtl8187: wireless switch is on
[ 1213.157397] usbcore: registered new interface driver rtl8187
[ 1213.197568] udev: renamed network interface wlan0 to wlan1
[ 1217.014780] ADDRCONF(NETDEV_UP): wlan1: link is not ready
[ 1219.117222] wlan1: direct probe to AP 00:04:ed:b9:1c:d7 (try 1)
[ 1219.120218] wlan1: direct probe responded
[ 1219.120222] wlan1: authenticate with AP 00:04:ed:b9:1c:d7 (try 1)
[ 1219.121967] wlan1: authenticated
[ 1219.121984] wlan1: associate with AP 00:04:ed:b9:1c:d7 (try 1)
[ 1219.124965] wlan1: RX AssocResp from 00:04:ed:b9:1c:d7 (capab=0x431 status=0 aid=4)
[ 1219.124968] wlan1: associated
[ 1219.130471] ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready

And then I get only these items in dmesg:
[ 1986.324027] [drm] nouveau 0000:01:00.0: Setting dpms mode 1 on vga encoder (output 1)
[ 7582.500014] No probe response from AP 00:04:ed:b9:1c:d7 after 500ms, disconnecting.

After bringing the interface up (again static IP config, WEP encryption)
iwconfig reports this
ubuntu$ sudo iwconfig wlan1
wlan1 IEEE 802.11bg ESSID:"My Net's home"
          Mode:Managed Frequency:2.412 GHz Access Point: 00:04:ED:B9:1C:D7
          Bit Rate=1 Mb/s Tx-Power=20 dBm
          Retry long limit:7 RTS thr:off Fragment thr:off
          Encryption key:F43E-D0B4-6B
          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

While waiting for a response to the initial report I added a pci-based wireless
card to the system, which reports about -80 dBm vs -50 dBm from the netgear.
Not clear why the difference is so large, they are less than a metre apart,
(not too close, in case of interference).
The pci card antenna is connected fine, the system case is not metal (Dell).

I shut down this interface and started another test with just the netgear.
It failed in exactly the same way as before.

here's dmesg for when the interface comes up:
[90153.178570] ADDRCONF(NE...

Read more...

tags: removed: needs-upstream-testing
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
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.