From owner-freebsd-stable@FreeBSD.ORG Sat Sep 2 17:21:58 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 7F91516A4DA for ; Sat, 2 Sep 2006 17:21:58 +0000 (UTC) (envelope-from dandee@hellteam.net) Received: from pipa.vshosting.cz (pipa.vshosting.cz [81.0.201.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0AB543D5C for ; Sat, 2 Sep 2006 17:21:57 +0000 (GMT) (envelope-from dandee@hellteam.net) Received: from localhost (localhost [127.0.0.1]) by pipa.vshosting.cz (Postfix) with ESMTP id B4D3D4E79B; Sat, 2 Sep 2006 19:21:57 +0200 (CEST) Received: from pipa.vshosting.cz ([127.0.0.1]) by localhost (pipa [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00529-06; Sat, 2 Sep 2006 19:21:57 +0200 (CEST) Received: from gandalf (unknown [81.0.245.205]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by pipa.vshosting.cz (Postfix) with ESMTP id 653E94E799; Sat, 2 Sep 2006 19:21:57 +0200 (CEST) From: =?iso-8859-2?Q?Daniel_Dvo=F8=E1k?= To: "'Sam Leffler'" Date: Sat, 2 Sep 2006 19:21:54 +0200 Message-ID: <000001c6ceb4$4a33c620$6508280a@tocnet28.jspoj.czf> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcbORV8Ws7zrV8/eQpG4RohCVQAwLQAaZrMg In-Reply-To: <44F9039C.7060001@errno.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at profix.cz 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 Reply-To: dandee@volny.cz List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Sep 2006 17:21:58 -0000 > You can override the country code but the potential values=20 > depends on the regdomain. I thought hw.ath.countrycode was=20 > r/w but it appears you can only set via the tunable api (kenv=20 > hw.ath.countrycode=3DXXX). The dev.ath mib must be r/o since=20 > you cannot (yet) change this after attaching the device (the=20 > driver does not implement it). Adding support to do this is=20 > not a big deal but hasn't been done; feel free to supply a patch. >=20 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=B4t know. :)