From owner-freebsd-current@FreeBSD.ORG Sat Apr 24 23:17:14 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 4CAAE106566B for ; Sat, 24 Apr 2010 23:17:14 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 14ACE8FC0C for ; Sat, 24 Apr 2010 23:17:13 +0000 (UTC) Received: by pwi9 with SMTP id 9so7879043pwi.13 for ; Sat, 24 Apr 2010 16:17:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent:organization:x-operation-sytem; bh=TJPKert2UnKbsZ+5Zs/bEXkl1iqK6S8XwP6b42MvsCA=; b=DBNSoj4QFRE/Zk3JrNOEm2QjylKW0PxsHYFVQPIzMIAtHqmaKfmZEOQUBoMaxQIhhm UT6nzCfg7DeHSdBK8LejSN/MRTBuP+VvdNxcSmdRLqwcurgrQugG2VpI2CXzNDxX3wXC lHYDS3zB5M/8bdEasKLspmp899OVcxzAbebY8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent:organization:x-operation-sytem; b=cxAvtdu1ZrEWgg4PZZmj+tKCJnbuK3Jn4XL/70eoe4QktsxLCbkOMpiQkydNepDXLa hrORYvMj15J0ykiYSlngMWfsrE0HHBnKCr/zsIkV1d7WbAu8yiMCY9yDej7p/W8e4mMd zEuQBqsEYHPwIdUOtCtrbybz+WGZ+Qng75xpE= Received: by 10.141.213.36 with SMTP id p36mr1945629rvq.5.1272151033505; Sat, 24 Apr 2010 16:17:13 -0700 (PDT) Received: from weongyo ([174.35.1.224]) by mx.google.com with ESMTPS id 20sm2526488pzk.15.2010.04.24.16.17.12 (version=SSLv3 cipher=RC4-MD5); Sat, 24 Apr 2010 16:17:12 -0700 (PDT) Received: by weongyo (sSMTP sendmail emulation); Sat, 24 Apr 2010 16:17:55 -0700 From: Weongyo Jeong Date: Sat, 24 Apr 2010 16:17:55 -0700 To: Gustau P?rez Message-ID: <20100424231755.GI65380@weongyo> Mail-Followup-To: Gustau P?rez , current@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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BD2201E.3090409@entel.upc.edu> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: 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 Reply-To: Weongyo Jeong List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Apr 2010 23:17:14 -0000 On Sat, Apr 24, 2010 at 12:33:02AM +0200, Gustau P?rez wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > En/na Weongyo Jeong ha escrit: > > On Wed, Mar 03, 2010 at 11:10:14AM +0200, Alexandr Rybalko wrote: > >> On Wed, 3 Mar 2010 00:28:33 -0800 > >> Weongyo Jeong wrote: > > > 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 Could you please test these variables to narrow this problem down? regards, Weongyo Jeong