From owner-freebsd-current@FreeBSD.ORG Thu May 6 20:27:41 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B13B91065670; Thu, 6 May 2010 20:27:41 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0ED9C8FC15; Thu, 6 May 2010 20:27:40 +0000 (UTC) Received: by fxm15 with SMTP id 15so327319fxm.13 for ; Thu, 06 May 2010 13:27:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=VFjV7I5TCsWoDki/P/meYldnWtJRfuJQ80/VQ4IbJww=; b=WlIKxrQbRzKSSfzjH9s/+QXQWCkeOynzrTXPfgTm5OzVuPdlmAfLfY1AtLc3iCDBJt vNzMEbkq+jxZrECsKNovIaPv6Cr8tbSSndgbFob47E7yPr5F6CuOjWeIgeAzpszlHdpj R7i86yumjtwkFfreWWnvNbLHSZYkb7Wpa3kqE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=B8eUK5lHZRe6NzEXnDrXxALLKzv7OdIcHBhLwMql4Zbq6HJp2MRMTecZrBVYQdj3Gx SiO0Godbzgq7NQmdtO2+fiJdw5Jq0qlQIEYB2NuTxUOsa/E5ZiL2yi4ca6O25wPFWOG0 Kzok/YCmps+UBxTn2tHsAtdYdszyckR2fygKo= MIME-Version: 1.0 Received: by 10.102.254.24 with SMTP id b24mr7476992mui.5.1273177651139; Thu, 06 May 2010 13:27:31 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.103.179.3 with HTTP; Thu, 6 May 2010 13:27:31 -0700 (PDT) In-Reply-To: <20100506190653.GA31100@weongyo> References: <20100226005115.GP14937@weongyo> <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> <4BD4A928.8020901@entel.upc.edu> <20100506190653.GA31100@weongyo> Date: Thu, 6 May 2010 22:27:31 +0200 X-Google-Sender-Auth: 469d55f7991bcd6d Message-ID: From: Attilio Rao To: Weongyo Jeong , current@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: 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: Thu, 06 May 2010 20:27:41 -0000 2010/5/6 Weongyo Jeong : > On Sun, Apr 25, 2010 at 10:42:16PM +0200, Gustau P?rez wrote: >> -----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 transmi= t >> >> 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 =3D=3D 0 comes from. =C2= =A0Rate >> > information on TX could be got from the following points: >> > >> > =C2=A0 =C2=A0 tp->mgmtrate >> > =C2=A0 =C2=A0 tp->mcastrate >> > =C2=A0 =C2=A0 tp->ucastrate >> > =C2=A0 =C2=A0 ni->ni_txrate >> > >> =C2=A0 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 >> >> =C2=A0 =C2=A0I didn't have time to follow the code to find out why it ha= s a 0 >> value. If you need >> more info let me know. > > Hello Gustau, I'm so sorry for belated response that I had no time to > read and work email and wireless stuffs. > > Could you please test this symptom with attached patch? =C2=A0It looks in > CURRENT it missed to initialize a ratectl when it associates with AP. Hello, I have another problem where the bwn is fully recognized and wlan0 is created but the interface doesn't scan at all: # netstat -nil Name Mtu Network Address Ipkts Ierrs Idrop Opkts Oerrs Coll bwn0 2290 00:26:5e:64:be:75 0 0 0 0 0 0 # ifconfig wlan0 wlan0: flags=3D8843 metric 0 mtu 15= 00 ether 00:26:5e:64:be:75 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid "" channel 1 (2412 MHz 11b) country US authmode OPEN privacy OFF txpower 30 bmiss 7 scanvalid 6= 0 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 1 wme bintval 0 # kldstat Id Refs Address Size Name 1 4 0xffffffff80100000 90b9a8 kernel 2 1 0xffffffff80c22000 28a9a bwn_v4_ucode.ko doing "ifconfig wlan0 list scan" ends up immediately without further output= . The dmesg is here: http://www.freebsd.org/~attilio/dmesg-bwn0.diff Sorry for not digging further. Thanks, Attilio --=20 Peace can only be achieved by understanding - A. Einstein