From owner-freebsd-stable@FreeBSD.ORG Sun Sep 3 16:15:44 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DD4C16A4DA for ; Sun, 3 Sep 2006 16:15:44 +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 2946343D46 for ; Sun, 3 Sep 2006 16:15:44 +0000 (GMT) (envelope-from sam@errno.com) Received: from [10.0.0.248] (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id k83GFgoe046635 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 3 Sep 2006 09:15:43 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <44FAFFAD.6050909@errno.com> Date: Sun, 03 Sep 2006 09:15:41 -0700 From: Sam Leffler User-Agent: Thunderbird 1.5.0.4 (X11/20060724) MIME-Version: 1.0 To: dandee@volny.cz References: <000001c6ceb4$4a33c620$6508280a@tocnet28.jspoj.czf> In-Reply-To: <000001c6ceb4$4a33c620$6508280a@tocnet28.jspoj.czf> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-stable@freebsd.org Subject: Re: atheros driver: countrycode and athdebug 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: Sun, 03 Sep 2006 16:15:44 -0000 Daniel Dvořák wrote: >> You can override the country code but the potential values >> depends on the regdomain. I thought hw.ath.countrycode was >> r/w but it appears you can only set via the tunable api (kenv >> hw.ath.countrycode=XXX). The dev.ath mib must be r/o since >> you cannot (yet) change this after attaching the device (the >> driver does not implement it). Adding support to do this is >> not a big deal but hasn't been done; feel free to supply a patch. >> > > Ok, I tried to set via the tunable api kenv through loader, but this is the > result: > > # ifconfig ath0 > ifconfig: interface ath0 does not exist > # ifconfig ath1 > ifconfig: interface ath1 does not exist > > ath0: mem 0x80000000-0x8000ffff irq 12 at device 13.0 on pci0 > ath0: unable to collect channel list from hal; regdomain likely 96 country > code > 203 > device_attach: ath0 attach returned 22 > > ath1: mem 0x800c0000-0x800cffff irq 9 at device 17.0 on pci0 > ath1: unable to collect channel list from hal; regdomain likely 96 country > code > 203 > device_attach: ath1 attach returned 22 > > ath0: mem 0x80000000-0x8000ffff irq 12 at device 13.0 on pci0 > ath0: unable to collect channel list from hal; regdomain likely 96 country > code 203 > device_attach: ath0 attach returned 22 > > ath1: mem 0x800c0000-0x800cffff irq 9 at device 17.0 on pci0 > ath1: unable to collect channel list from hal; regdomain likely 96 country > code 203 > device_attach: ath1 attach returned 22 > > # sysctl hw.ath > hw.ath.hal.version: 0.9.17.2 > hw.ath.hal.dma_brt: 2 > hw.ath.hal.sw_brt: 10 > hw.ath.hal.swba_backoff: 0 > hw.ath.dwell: 200 > hw.ath.calibrate: 30 > hw.ath.outdoor: 1 > hw.ath.xchanmode: 1 > hw.ath.countrycode: 203 > hw.ath.regdomain: 0 -- not setted to 96 ???? > hw.ath.rxbuf: 40 > hw.ath.txbuf: 100 > > So ? I don´t know. :) Your card has a regdomain in the eeprom that is 96. I believe that's the FCC regdomain. With that regdomain you cannot specify any country code except US. The hw.ath mib tree mostly contains "default settings" that are applied to instances of the ath driver as they are attached. The hw.ath.regdomain is there in case I'm able to add the ability to override the eeprom regdomain at some point the future (something high on my todo list). In the mean time it is well known how to deal with this situation--take a look at the madwifi.org web pages. Sam