From owner-freebsd-stable@FreeBSD.ORG Sat Oct 3 18:49:05 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5498A106568B for ; Sat, 3 Oct 2009 18:49:05 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 0C6038FC0C for ; Sat, 3 Oct 2009 18:49:04 +0000 (UTC) Received: from ice.local ([10.0.0.115]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n93ISooj039193 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 3 Oct 2009 11:28:50 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <4AC797E2.2050709@errno.com> Date: Sat, 03 Oct 2009 11:28:50 -0700 From: Sam Leffler User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: Matt Dawson References: <200910021726.33663.matt@chronos.org.uk> In-Reply-To: <200910021726.33663.matt@chronos.org.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-x.dcc-servers-Metrics: ebb.errno.com; whitelist Cc: freebsd-stable@freebsd.org Subject: Re: ral(4) on 8-RC1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Oct 2009 18:49:05 -0000 Matt Dawson wrote: > Odd little issue just cropped up on my lappie running 8.0-RC1 amd64. On 7.2 > the ral(4) wireless NIC (2560 1st gen mini-PCI) gave me the Japanese > regulatory domain allocations (2.412GHz to 2.477GHz, 14 channels) on > 802.11g. I understand a lot has changed with 802.11 on 8, but I can now > only ever get 2.412-2.462GHz channels 1 to 11. It's not a huge issue right > now as my own AP is within that range, but I may run into problems using > open access WiFi on the go sometime in the future, with being in the UK > (ETSI) and all that. > > wlan0 is set up in rc.conf like this: > > wlans_ral0="wlan0" > ifconfig_wlan0="country GB regdomain ETSI protmode off WPA DHCP" > > Taking the interface down and tweaking ifconfig's regdomain and related > options makes no difference. I still only end up with 11 channels no matter > what I try. Booting from 6.3 (DSBSD over PXE) lists, yet again, 14 channels > when I use ifconfig ral0 list chans. Ifconfig lists the correct country and > regdomain, so I'm stumped. I do get the "ral0: need multicast update > callback" warning, but I'm led to believe that this is harmless. ral probably does not populate it's initial channel list according to the device capabilities. I'm guessing it falls back on the system code to do that and it fills in only channels 1-11. This means future changes to regulatory cannot setup the channels you want--it's not allowed to add channels that are not listed in the "device capabilities". > > ral0@pci0:2:4:0: class=0x028000 card=0x614618e8 chip=0x02011814 rev=0x01 > hdr=0x00 > vendor='Ralink Technology, Corp' > device='Ralink Chipset 802.11b/g WLAN card ( > PCIVEN_1814&DEV_0201&SUBSYS_68331460&REV_013&)' > class=network > cap 01[40]=powerspec 2 supports D0 D3 current D0 > > Any ideas? Anything else I can do to check the card? Anything else I should > have included? I also have a 2561 based Gigabyte GN-WI01GS (also ral) and > an iwi(4) 2915 dual band card to test with (and no silly BIOS limitations > to stop me, thank $DEITY), but I've had zero luck with iwi on amd64, hence > the Ralink card. Last time I tried iwi, the default build (7.1 IIRC) didn't > build the module or its firmware (I did have the license ack in > loader.conf) and I had to faff about connecting the module to the build, > which wasn't pleasant and didn't work anyway (no results from scan, no > association with my AP despite working perfectly on i386 with the same > config). You can hack ral to setup a proper channel list at attach or you can make a private hack to net80211 to populate the channel list w/ those channels you want. Either is simple. Sam