From nobody@FreeBSD.org  Wed Aug 18 22:21:52 2010
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 23D6A1065679
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Aug 2010 22:21:52 +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 ECE018FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Aug 2010 22:21:51 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o7IMLorI024895
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Aug 2010 22:21:50 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o7IMLoKM024889;
	Wed, 18 Aug 2010 22:21:50 GMT
	(envelope-from nobody)
Message-Id: <201008182221.o7IMLoKM024889@www.freebsd.org>
Date: Wed, 18 Aug 2010 22:21:50 GMT
From: Tom Uffner <tom@uffner.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bwn on Dell Inspiron 1150: connections stall
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         149786
>Category:       kern
>Synopsis:       [bwn] bwn on Dell Inspiron 1150: connections stall
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-wireless
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 18 22:30:01 UTC 2010
>Closed-Date:    
>Last-Modified:  Tue May  8 17:20:07 UTC 2012
>Originator:     Tom Uffner
>Release:        8-STABLE
>Organization:
>Environment:
FreeBSD zoe.uffner.com 8.1-STABLE FreeBSD 8.1-STABLE #4: Sun Aug  1 16:50:16 EDT 2010     tom@zoe.uffner.com:/usr/obj/usr/src/sys/ZOE  i386

>Description:
My laptop (Dell Inspiron 1150) has bwn supported wireless provided by a Broadcom internal mini-pci card. the identifying info printed os said card is

c2003 BROADCOM CORP
BCM94306MPSG REV4

pciconf -lv says:

siba_bwn0@pci0:2:2:0:   class=0x028000 card=0x00031028 chip=0x432014e4 rev=0x03 hdr=0x00
    vendor     = 'Broadcom Corporation'
    device     = '802.11b/g Wireless LAN Controller (BCM4309)'
    class      = network

and dmesg says:

siba_bwn0: <Broadcom BCM4306 802.11b/g Wireless> mem 0xfcffc000-0xfcffdfff irq 11 at device 2.0 on pci2
bwn0 on siba_bwn0
bwn0: WLAN (chipid 0x4306 rev 5) PHY (analog 2 type 2 rev 2) RADIO (manuf 0x17f ver 0x2050 rev 2)
bwn0: DMA (30 bits)
bwn0: [FILTER]

this card seems to initialize properly and associate w/ any nearby access point. but when it is used to make TCP connections, the connection will always stall (and eventually time out and disconnect) any time it receives a substantial amount of data at once (the threshold seems to be a few hundred bytes). for example, i can ssh to another host, and as long as i stick to commands that only produce a few bytes of output it will work indefinitely. but as soon as i do anything that produces a more significant amount of output, for example "ls -al" or "man bwn" it will stall, and i get nothing more from that connection. http w/ firefox behaves similarly: small simple pages load, big ones lock up. the problem seems to affect individual connects rather then locking up the driver as a whole. when an ssh session locks up, i can open a new window and ssh to the same or any other host and the new session will also connect and behave as described above.

this occurs w/ GENERIC as well as my customized kernel (w/ all unused drivers, etc stripped from config). it does not affect other network drivers (such as builtin bfe port or an ath based wireless pccard).

none of the changes in current that have not yet been MFC'd had any effect, nor could i find any past revision where this problem did not occur.
>How-To-Repeat:
% ssh <some host>    // via bwn0 / wlan0 interface
% cd /usr/bin
% ls -al

session becomes non-responsive and will eventually time out & disconnect, it can be killed (-9) from another window or vty.
>Fix:
n/a

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Aug 18 23:01:57 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149786 

From: Buganini <buganini@gmail.com>
To: bug-followup@FreeBSD.org, tom@uffner.com
Cc:  
Subject: Re: kern/149786: [bwn] bwn on Dell Inspiron 1150: connections stall
Date: Thu, 19 Aug 2010 14:18:01 +0000

 What if you force it to work in mode 11b?
 I have similiar problem here, but it is usable if I `ifconfig wlan0
 mode 11b ssid BLAH`
 
 
 Buganini

From: Tom Uffner <tom@uffner.com>
To: bug-followup@FreeBSD.org, tom@uffner.com
Cc:  
Subject: Re: kern/149786: [bwn] bwn on Dell Inspiron 1150: connections stall
Date: Thu, 19 Aug 2010 19:32:59 -0400

 no stalled connections so far after explicitly setting "mode 11b", but
 i have only done the most minimal testing so far. there have been a few
 times when connections seemed bursty, but that could have been due to the
 lower bandwidth & buffering effects, or it could have been my imagination...
 
 in any case it seems we have the same issue.
 
 tom

From: Tom Uffner <tom@uffner.com>
To: bug-followup@FreeBSD.org, tom@uffner.com
Cc:  
Subject: Re: kern/149786: [bwn] bwn on Dell Inspiron 1150: connections stall
Date: Thu, 19 Aug 2010 22:56:07 -0400

 after a bit more testing, i seem to be experiencing some minor problems in
 802.11b mode too: when doing a cvs update of /usr/src from an NFSv3 mounted
 repository, i experienced a number of NFS failures. but unlike running the
 wlan in g mode, it did always recover and start talking again (nfs server
 not responding ... nfs server is alive again ...)
 
Responsible-Changed-From-To: freebsd-net->freebsd-wireless 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Mon Apr 11 22:46:18 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149786 

From: Adam Vande More <amvandemore@gmail.com>
To: bug-followup@FreeBSD.org, tom@uffner.com
Cc:  
Subject: Re: kern/149786: [bwn] bwn on Dell Inspiron 1150: connections stall
Date: Tue, 8 May 2012 12:13:10 -0500

 --f46d043be1d05029a104bf8980c1
 Content-Type: text/plain; charset=ISO-8859-1
 
 I have nearly the same problem/symptoms on FreeBSD 9.0-STABLE #0 r235121:
 
 siba_bwn0@pci0:4:0:0:   class=0x028000 card=0x000c1028 chip=0x431514e4
 rev=0x01 hdr=0x00
     vendor     = 'Broadcom Corporation'
     device     = 'BCM4312 802.11b/g LP-PHY'
     class      = network
 
 Toggling hw.bwn.usedma to 0 resulting in less console spam, but the
 operation of the device seems even more flaky then albeit with less console
 spam.
 
 Setting mode 11b also seems to work around the issue, but it's a not really
 a desirable workaround and introduces console spam of "bwn0: unsupported
 rate 0".
 
 -- 
 Adam Vande More
 
 --f46d043be1d05029a104bf8980c1
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: quoted-printable
 
 I have nearly the same problem/symptoms on=A0FreeBSD 9.0-STABLE #0 r235121:=
 <div><br></div><div><div>siba_bwn0@pci0:4:0:0: =A0 class=3D0x028000 card=3D=
 0x000c1028 chip=3D0x431514e4 rev=3D0x01 hdr=3D0x00</div><div>=A0 =A0 vendor=
  =A0 =A0 =3D &#39;Broadcom Corporation&#39;</div>
 <div>=A0 =A0 device =A0 =A0 =3D &#39;BCM4312 802.11b/g LP-PHY&#39;</div><di=
 v>=A0 =A0 class =A0 =A0 =A0=3D network</div><div><br></div><div>Toggling=A0=
 hw.bwn.usedma to 0 resulting in less console spam, but the operation of the=
  device seems even more flaky then albeit with less console spam.</div>
 </div><div><br></div><div>Setting mode 11b also seems to work around the is=
 sue, but it&#39;s a not really a desirable workaround and introduces consol=
 e spam of &quot;bwn0: unsupported rate 0&quot;.</div><div><br></div>-- <br>
 Adam Vande More<br>
 
 --f46d043be1d05029a104bf8980c1--
>Unformatted:
