wl driver ioctl SIOCGIWSTATS fails intermittently

Bug #364413 reported by Brett Bender on 2009-04-21
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux-restricted-modules (Ubuntu)
Undecided
Unassigned

Bug Description

Under Jaunty with the wl driver and Broadcom BCM4312, the output from iwconfig intermittently omits the stats (link quality, signal strength, noise, TX/RX errors). Based on my troubleshooting, I think this is a failure somewhere in the driver -- see following details.

When all is well, "good" output from iwconfig looks like this:

eth1 IEEE 802.11bg ESSID:"***" Nickname:""
          Mode:Managed Frequency:2.462 GHz Access Point: 00:0F:66:B9:16:01
          Bit Rate=54 Mb/s Tx-Power:32 dBm
          Retry min limit:7 RTS thr:off Fragment thr:off
          Power Managementmode:All packets received
          Link Quality=5/5 Signal level=-54 dBm Noise level=-90 dBm
          Rx invalid nwid:0 Rx invalid crypt:1 Rx invalid frag:0
          Tx excessive retries:1 Invalid misc:0 Missed beacon:0

While "bad" looks like this:

eth1 IEEE 802.11bg ESSID:"***" Nickname:""
          Mode:Managed Frequency:2.462 GHz Access Point: 00:0F:66:B9:16:01
          Bit Rate=54 Mb/s Tx-Power:32 dBm
          Retry min limit:7 RTS thr:off Fragment thr:off
          Power Managementmode:All packets received

In other words, the "bad" output is missing the stats entirely.

I dug into the wireless-tools source, fired up gdb, and traced the failure case down to the iw_get_stats() function in iwlib.c

This call:

  iw_get_ext(skfd, ifname, SIOCGIWSTATS, &wrq)

is a wrapper around ioctl(), and when things don't work the ioctl is returning error (-1).

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: nvidia
Package: linux-restricted-modules-2.6.28-11-generic 2.6.28-11.15
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/zsh
SourcePackage: linux-restricted-modules
Uname: Linux 2.6.28-11-generic x86_64

Brett Bender (brett-benders) wrote :
David Monniaux (david-monniaux) wrote :

Same problem here except that iwconfig never reports the stats.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers