Re: ipw2100: disconnects caused by scan while associated

Harald Braumann <[email protected]> Tue, 20 May 2008 13:02:09 +0200
Newsgroups gmane.linux.drivers.ipw2100.devel
Message-ID <20080520130209.5c5ba24d@sbs173>
On Tue, 20 May 2008 10:35:21 +0800
Zhu Yi <[email protected]> wrote:

> On Mon, 2008-05-19 at 13:10 +0200, Harald Braumann wrote:
> > Hi,
> > 
> > I experience frequent disconnects of the wireless interface. This is
> > ipw2100 on an IBM Thinkpad T42p. Kernel version is 2.6.25.
> > 
> > I've enabled debug output with level 0x1bff7. The log shows the
> > following, when a disconnect occurs:
> > 
> > I isr_status_change Scan detected while associated, with no scan
> > request.  Restarting firmware. I schedule_reset wifi0: Scheduling
> > firmware restart (0s). I isr_status_change Status change:
> > IPW_STATE_SCANNING I isr_indicate_scanning Scanning...
> > U ipw2100_reset_adapter : wifi0: Restarting adapter.
> > U ipw2100_power_cycle_adapter Power cycling the hardware.
> > 
> > After that the driver re-initialises, the adapter reconnects, and
> > everything works again until the next disconnect.
> > 
> > Where is this scan request coming from? Userspace (i.e.
> > wpa_supplicant), or is it some bug in the firmware?
> 
> Can you post the full log?
> 
> I wonder if it is a fatal error in the case of a "scan without a
> request". Can you try attached patch and see if the problem goes away?

OK, tried the patch, but it seems at least some recovery is necessary
in this case. After some time "scan detected while associated"
happened. iwevent shows:

Waiting for Wireless Events from interfaces...
12:23:17.935538   wifi0    Scan request completed
12:23:21.935002   wifi0    Scan request completed
12:23:26.935789   wifi0    Scan request completed
12:23:31.934869   wifi0    Scan request completed
...

ipw2100 log shows:
May 20 12:23:13 sbs173 kernel: [316111.165383] ipw2100: I isr_status_change Warning: scan detected while associated, with no scan request.
May 20 12:23:13 sbs173 kernel: [316111.165401] ipw2100: I isr_status_change Status change: IPW_STATE_SCANNING
May 20 12:23:13 sbs173 kernel: [316111.165411] ipw2100: I isr_indicate_scanning Scanning...
May 20 12:23:13 sbs173 kernel: [316111.218214] ipw2100: I isr_status_change Status change: IPW_STATE_SCANNING
May 20 12:23:13 sbs173 kernel: [316111.218228] ipw2100: I isr_indicate_scanning Scanning...
May 20 12:23:13 sbs173 kernel: [316111.263406] ipw2100: I isr_status_change Status change: IPW_STATE_SCANNING
May 20 12:23:13 sbs173 kernel: [316111.263422] ipw2100: I isr_indicate_scanning Scanning...
May 20 12:23:14 sbs173 kernel: [316111.623146] ipw2100: I isr_status_change Status change: IPW_STATE_SCAN_COMPLETE
May 20 12:23:14 sbs173 kernel: [316111.623163] ipw2100: I isr_scan_complete scan complete

This stanza is repeated ad nauseum. I've attached the full log with
debug_level = 0x1bff7 (ipw2100-patched.log.gz). 

I've then reverted the patch. A log of such an incidence (without patch) 
is attached also (ipw2100.log.gz).

I trust the log does not contain any key material?

Cheers,
harry

> 
> Thanks,
> -yi

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
ipw2100-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipw2100-devel
ipw2100.log.gz (application/x-gzip, 6.7 KB) - not displayed
ipw2100-patched.log.gz (application/x-gzip, 10.3 KB) - not displayed
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIMq+ywMFqDB+mz24RAiRpAKCephdxIcR9rxTU5BJ6VGxmDxWk4gCghXjc
pKSvVs5lbFbBKkECoEE/gXs=
=qtad
-----END PGP SIGNATURE-----