From nobody@FreeBSD.org  Thu Aug  7 15:33:25 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 103E1106567D
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Aug 2008 15:33:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id F224A8FC1F
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  7 Aug 2008 15:33:24 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m77FXOqT007197
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 7 Aug 2008 15:33:24 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m77FXOqW007196;
	Thu, 7 Aug 2008 15:33:24 GMT
	(envelope-from nobody)
Message-Id: <200808071533.m77FXOqW007196@www.freebsd.org>
Date: Thu, 7 Aug 2008 15:33:24 GMT
From: David Gurvich <david.gurvich@verizon.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ipw driver drops the connection
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         126339
>Category:       kern
>Synopsis:       [ipw] ipw driver drops the connection
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 07 15:40:01 UTC 2008
>Closed-Date:    
>Last-Modified:  Thu Aug 07 17:24:44 UTC 2008
>Originator:     David Gurvich
>Release:        7-STABLE
>Organization:
none
>Environment:
FreeBSD Lucifer 7.0-STABLE FreeBSD 7.0-STABLE #0: Tue Aug  5 16:01:18 EDT 2008     david@Lucifer:/usr/obj/usr/src/sys/T23_LUCI  i386

>Description:
From time to time the ipw driver drops the connection.  Not each time
the connection is dropped, occasionally the following error:

Aug  6 00:13:38 Lucifer kernel: ipw0: link state changed to DOWN
Aug  6 00:16:59 Lucifer kernel: ipw0: link state changed to UP
Aug  6 00:16:59 Lucifer kernel: ipw0: firmware error
Aug  6 00:16:59 Lucifer kernel: ipw0: link state changed to DOWN

Restarting netif, bringing ipw down&up, regains the connection.

Here is a typical set from /var/log/messages :
Aug  7 10:49:43 Lucifer kernel: ipw0: link state changed to DOWN
Aug  7 10:49:45 Lucifer kernel: ipw0: link state changed to UP

Then I restart the interface:
Aug  7 10:51:29 Lucifer kernel: ipw0: link state changed to DOWN
Aug  7 10:51:54 Lucifer kernel: ipw0: link state changed to UP
Aug  7 10:51:54 Lucifer dhclient: New IP Address (ipw0): 192.168.1.45
Aug  7 10:51:54 Lucifer dhclient: New Subnet Mask (ipw0): 255.255.255.0
Aug  7 10:51:54 Lucifer dhclient: New Broadcast Address (ipw0): 255.255.255.255
Aug  7 10:51:54 Lucifer dhclient: New Routers (ipw0): 192.168.1.1
Aug  7 10:51:54 Lucifer dhclient: New IP Address (ipw0): 192.168.1.45
Aug  7 10:51:54 Lucifer dhclient: New Subnet Mask (ipw0): 255.255.255.0
Aug  7 10:51:54 Lucifer dhclient: New Broadcast Address (ipw0): 255.255.255.255
Aug  7 10:51:54 Lucifer dhclient: New Routers (ipw0): 192.168.1.1

I'm not sure if there is a duplicate set of lines in the log file or if
there are two instances for getting the routing set up.
>How-To-Repeat:
Turn the machine on, connect wirelessly, wait random interval.  At some
point there will be messages in the log file about ipw0 link state changed
to DOWN then UP.
>Fix:
I've been considering a script to automatically bring ipw0 down/up every
minute.  Seems insane as many days the connection is maintained for over
an hour at a time.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Aug 7 17:24:05 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=126339 
>Unformatted:
