From owner-freebsd-current@FreeBSD.ORG Sun Apr 25 20:42:24 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3138A1065670; Sun, 25 Apr 2010 20:42:24 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from dash.upc.es (dash.upc.es [147.83.2.50]) by mx1.freebsd.org (Postfix) with ESMTP id A49698FC20; Sun, 25 Apr 2010 20:42:23 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by dash.upc.es (8.14.1/8.13.1) with ESMTP id o3PKgLki007840 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 25 Apr 2010 22:42:21 +0200 Received: from [192.168.100.195] (82.Red-88-7-161.staticIP.rima-tde.net [88.7.161.82]) (authenticated bits=0) by ackerman2.upc.es (8.13.8/8.13.8) with ESMTP id o3PKgGdr016985 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 25 Apr 2010 22:42:20 +0200 Message-ID: <4BD4A928.8020901@entel.upc.edu> Date: Sun, 25 Apr 2010 22:42:16 +0200 From: =?ISO-8859-1?Q?Gustau_P=E9rez?= User-Agent: Thunderbird 2.0.0.24 (X11/20100416) MIME-Version: 1.0 To: weongyo@freebsd.org References: <20091223035331.GA1293@weongyo> <4b31cb29.9413f30a.5f4a.ffff8382@mx.google.com> <20100226005115.GP14937@weongyo> <20100227011535.ed3f2486.ray@ddteam.net> <20100228095259.GB3536@weongyo> <20100301103240.3a4aac8a.ray@dlink.ua> <20100303082833.GB22865@weongyo> <20100303111014.6564ea1e.ray@dlink.ua> <20100312231333.GZ1295@weongyo> <4BD2201E.3090409@entel.upc.edu> <20100424231755.GI65380@weongyo> In-Reply-To: <20100424231755.GI65380@weongyo> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.63 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (dash.upc.es [147.83.2.50]); Sun, 25 Apr 2010 22:42:21 +0200 (CEST) Cc: Gustau P?rez , current@freebsd.org Subject: Re: Call for Test and Review: bwn(4) - another Broadcom Wireless driver X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Apr 2010 20:42:24 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> I've been testing the driver for a few time with AMD64/CURRENT. A >> few time ago I started to see messages like : >> >> bwn0: unsupported rate 0 >> >> I've checked the code and I found it seems to fail when trying to >> check the TX rate at if_bw.c:9561 (in bwn_ieeerate2hwrate >> routine the rate parameter is 0). I checked where bwn_ieeerate2hwrate >> is called, to see how 'rate' is calculated. This is where I got lost :( >> >> My AP is FreeBSD 8.0 box with an atheros card. My hostapd works >> with both WPA2-PSK and WPA2-EAP (although >> I thinks this is not the problem) but with default values for rates >> and friends. I then forced my hostapd to use only a subset of transmit >> rates (with supported_rates and basic_rates) with no luck. >> >> My laptop is a DELL D630 with a BCM4310 UART adapter. >> >> Any need info will be provided and any help will be appreciated. > > First I think we need to know that where rate == 0 comes from. Rate > information on TX could be got from the following points: > > tp->mgmtrate > tp->mcastrate > tp->ucastrate > ni->ni_txrate > Added some device_printf to test those values. This is what I got : bwn0: tp->mgmtrate : 2 bwn0: tp->mcastrate : 2 bwn0: tp->ucastrate : 255 bwn0: ni->ni_txrate : 0 I didn't have time to follow the code to find out why it has a 0 value. If you need more info let me know. Regards, Gus - -- PGP KEY : http://www-entel.upc.edu/gus/gus.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJL1KknAAoJEH+VVM1WSYnPAPUQAJrpVOOJ4KzUAe6GQHwFnM15 bUiuUeL+5b7sujjLY9j/zuCHQxPDak+/F7eG5AeaJ1bQFkuexG1oDJDLx3oTR06x xhSOKUPZuabrqVeX9xT2d9h8PHa8soEG1GtOPgKzLLfbP8emaimwEnNTlp9G+typ IFxI/LOGzSkpXsqupsXzHTjNiHOxjkijj7e2tEvU8qHh133JebrxBX0jpqSBrZKg +TAC6QnKxh+Mygumsc/5nVQiOPFJEQEEXXdSLXZbr2SqczDeDw98MXxiR4M7TnF/ 20j5fQQE65r6YoPx4X5h2IvaBz2f9aeXlP/t3XIepwuVl3cjL+7B9/CRkV5+T4B1 C5u1Je3tZU0c6fcXOAVOVo7A2c6d+tHXP014CKONPrsTUR2HmLHYNuCQZ+d9LBKx luMcPlqTeRjo+L+VxsM+P+2feegJ7/eV6gweYt3bWsbYzMwfPvjpX2HqgqDtx3DO IT/V8mO76GyCZ21MOdfDQC/1UTHztJVUEGTIXw1HO3aAn3LOsKMPegvF0ZdFyU+5 xv8xkgtbrIBxSA6TzsAu6E+JhksJw9KeEQ4bcaKND7EttnGGelawBB+FeRQiNDYt 6hlSdaX/hHn76tGGx0eJZ/qpdESo8WJvOgaQrt41s1RlfCFnMWmQxDeRY6Dj47LN aB2pONw41gG9OfrPcGi/ =f70p -----END PGP SIGNATURE-----