atheros driver: countrycode and athdebug
Daniel Dvořák
dandee at hellteam.net
Sat Sep 2 10:21:58 PDT 2006
> 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: <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´t know. :)
More information about the freebsd-stable
mailing list