Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Sep 2006 19:21:54 +0200
From:      =?iso-8859-2?Q?Daniel_Dvo=F8=E1k?= <dandee@hellteam.net>
To:        "'Sam Leffler'" <sam@errno.com>
Cc:        freebsd-stable@freebsd.org
Subject:   RE: atheros driver: countrycode and athdebug
Message-ID:  <000001c6ceb4$4a33c620$6508280a@tocnet28.jspoj.czf>
In-Reply-To: <44F9039C.7060001@errno.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
> 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: <Atheros 5212> 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: <Atheros 5212> 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: <Atheros 5212> 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: <Atheros 5212> 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. :)




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?000001c6ceb4$4a33c620$6508280a>